fix(version): add timeout and check HTTP errors (#2886)

This commit is contained in:
Sergio Garcia
2023-10-02 14:44:16 +02:00
committed by GitHub
parent 583194085c
commit 64f06b11b8
2 changed files with 5 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ MOCK_PROWLER_VERSION = "3.3.0"
MOCK_OLD_PROWLER_VERSION = "0.0.0"
def mock_prowler_get_latest_release(_):
def mock_prowler_get_latest_release(_, **kwargs):
"""Mock requests.get() to get the Prowler latest release"""
response = Response()
response._content = b'[{"name":"3.3.0"}]'