azure csp tests catch exceptions resulting from raised requests exceptions

This commit is contained in:
2020-02-11 15:32:47 -05:00
parent 441e81ba8d
commit 41e2ae5253
9 changed files with 440 additions and 239 deletions

View File

@@ -79,7 +79,9 @@ def mock_adal():
def mock_requests():
import requests
return Mock(wraps=requests)
mock_requests = Mock(wraps=requests)
mock_requests.exceptions = requests.exceptions
return mock_requests
def mock_secrets():