tests: use https:// scheme in webtest client (#71945)

Adaptation to change in authentic settings (SESSION_COOKIE_SECURE=True).
This commit is contained in:
Benjamin Dauvergne 2022-12-01 19:11:05 +01:00
parent 32e1417b6d
commit 5e5ebf6961
1 changed files with 1 additions and 1 deletions

View File

@ -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: