aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/tests/conftest.py')
-rw-r--r--mediagoblin/tests/conftest.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/mediagoblin/tests/conftest.py b/mediagoblin/tests/conftest.py
new file mode 100644
index 00000000..25f495d6
--- /dev/null
+++ b/mediagoblin/tests/conftest.py
@@ -0,0 +1,15 @@
+from mediagoblin.tests import tools
+
+import pytest
+
+@pytest.fixture()
+def test_app(request):
+ """
+ py.test fixture to pass sandboxed mediagoblin applications into tests that
+ want them.
+
+ You could make a local version of this method for your own tests
+ to override the paste and config files being used by passing them
+ in differently to get_app.
+ """
+ return tools.get_app(request)