summaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
blob: ecb77a2b7722645fa7f853f40e3bb91654706194 (plain)
1
2
3
4
5
6
7
8
9
10
import pytest
import django_webtest


@pytest.fixture
def app(request, db):
    wtm = django_webtest.WebTestMixin()
    wtm._patch_settings()
    request.addfinalizer(wtm._unpatch_settings)
    return django_webtest.DjangoTestApp()