@pytest.fixture(scope='function')
def app(request):
    wtm = WebTestMixin()
    wtm._patch_settings()
    request.addfinalizer(wtm._unpatch_settings)
    return DjangoTestApp()
WebTest's TestApp.
dataset/ETHPy150Open mvantellingen/localshop/tests/conftest.py/app