aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/conftest.py
blob: 25f495d6db9756e558409e31bdf0ac0638123212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)