This commit is contained in:
parent
0c29acb6e2
commit
6ca8a330f8
|
@ -48,3 +48,8 @@ def app(db, freezer):
|
|||
return django_webtest.DjangoTestApp(extra_environ={'HTTP_HOST': 'localhost'})
|
||||
finally:
|
||||
wtm._unpatch_settings()
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def media(settings, tmpdir):
|
||||
settings.MEDIA_ROOT = str(tmpdir.mkdir('media'))
|
||||
|
|
Loading…
Reference in New Issue