tests/auth_fc: unset local no_proxy env variable (#64305)
This commit is contained in:
parent
8635dec7fa
commit
b0132b0a15
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue