Projet

Général

Profil

0001-tests-use-https-scheme-in-webtest-client-71945.patch

Benjamin Dauvergne, 01 décembre 2022 19:11

Télécharger (926 octets)

Voir les différences:

Subject: [PATCH] tests: use https:// scheme in webtest client (#71945)

Adaptation to change in authentic settings (SESSION_COOKIE_SECURE=True).
 tests/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/conftest.py
18 18
    wtm._patch_settings()
19 19
    request.addfinalizer(wtm._unpatch_settings)
20 20
    settings.MEDIA_DIR = str(tmpdir.mkdir('media'))
21
    return django_webtest.DjangoTestApp(extra_environ={'HTTP_HOST': 'localhost'})
21
    return django_webtest.DjangoTestApp(extra_environ={'HTTP_HOST': 'localhost', 'wsgi.url_scheme': 'https'})
22 22

  
23 23

  
24 24
class AllHook:
25
-