0001-tests-use-https-scheme-in-webtest-client-71945.patch
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 |
- |