Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrooot committed Sep 11, 2024
1 parent c8db776 commit 5bb9f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Test_accessanalyzer_enabled_fixer:
def test_accessanalyzer_enabled_fixer(self):
accessanalyzer_client = mock.MagicMock
accessanalyzer_client.analyzers = []
accessanalyzer_client.regional_clients = {AWS_REGION: accessanalyzer_client}
with mock.patch(
"prowler.providers.aws.services.accessanalyzer.accessanalyzer_service.AccessAnalyzer",
new=accessanalyzer_client,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def test_guardduty_is_enabled_fixer(self):
guardduty_client.region = AWS_REGION_EU_WEST_1
guardduty_client.detectors = []
guardduty_client.audited_account_arn = AWS_ACCOUNT_ARN
guardduty_client.regional_clients = {AWS_REGION_EU_WEST_1: guardduty_client}
with mock.patch(
"prowler.providers.aws.services.guardduty.guardduty_service.GuardDuty",
guardduty_client,
Expand Down

0 comments on commit 5bb9f2a

Please sign in to comment.