mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-13 15:04:19 +00:00
fix: flake 8
This commit is contained in:
2 files changed
+5
-2
No files matched your search
+4
-2
@@ -1058,8 +1058,10 @@ def prowler():
|
||||
output_options.send_sh_only_fails,
|
||||
)
|
||||
|
||||
#Send the findings to Security Hub
|
||||
findings_sent_to_security_hub = security_hub.batch_send_to_security_hub()
|
||||
# Send the findings to Security Hub
|
||||
findings_sent_to_security_hub = (
|
||||
security_hub.batch_send_to_security_hub()
|
||||
)
|
||||
if findings_sent_to_security_hub == 0:
|
||||
print(
|
||||
f"{Style.BRIGHT}{orange_color}\nNo findings sent to AWS Security Hub.{Style.RESET_ALL}"
|
||||
|
||||
@@ -1521,6 +1521,7 @@ class TestSecurityHub:
|
||||
}
|
||||
|
||||
assert result == expected_result
|
||||
|
||||
# Tests for _check_region_security_hub static method
|
||||
@patch("botocore.client.BaseClient._make_api_call", new=mock_make_api_call)
|
||||
def test_check_region_security_hub_success(self):
|
||||
|
||||
Reference in new issue
Block a user