tests: add missing global fixtures

This commit is contained in:
Frédéric Péters 2018-09-28 16:07:08 +02:00
parent a6df6bdcd6
commit e84ba975b4
1 changed files with 11 additions and 0 deletions

11
tests/conftest.py Normal file
View File

@ -0,0 +1,11 @@
import pytest
import django_webtest
@pytest.fixture
def app(request):
wtm = django_webtest.WebTestMixin()
wtm._patch_settings()
request.addfinalizer(wtm._unpatch_settings)
return django_webtest.DjangoTestApp()