tests/auth_fc: unset local no_proxy env variable (#64305)

This commit is contained in:
Paul Marillonnet 2022-04-25 14:22:00 +02:00
parent 8635dec7fa
commit b0132b0a15
1 changed files with 2 additions and 0 deletions

View File

@ -239,6 +239,8 @@ def test_requests_proxies_support(settings, app, monkeypatch):
# on local test execution 'NO_PROXY' env variable might be set
if 'NO_PROXY' in os.environ:
monkeypatch.delenv('NO_PROXY')
if 'no_proxy' in os.environ:
monkeypatch.delenv('no_proxy')
with mock.patch('authentic2_auth_fc.utils.requests.Session.send') as mocked_send:
mocked_send.return_value = mock.Mock(status_code=200, content='whatever')