tests: use https:// scheme in webtest client (#71945)
Adaptation to change in authentic settings (SESSION_COOKIE_SECURE=True).
This commit is contained in:
parent
32e1417b6d
commit
5e5ebf6961
|
@ -18,7 +18,7 @@ def app(request, db, settings, tmpdir):
|
|||
wtm._patch_settings()
|
||||
request.addfinalizer(wtm._unpatch_settings)
|
||||
settings.MEDIA_DIR = str(tmpdir.mkdir('media'))
|
||||
return django_webtest.DjangoTestApp(extra_environ={'HTTP_HOST': 'localhost'})
|
||||
return django_webtest.DjangoTestApp(extra_environ={'HTTP_HOST': 'localhost', 'wsgi.url_scheme': 'https'})
|
||||
|
||||
|
||||
class AllHook:
|
||||
|
|
Loading…
Reference in New Issue