Skip to content

Commit

Permalink
Satisfy ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
malexmave authored and twwd committed Oct 1, 2024
1 parent 5325861 commit 79f9551
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ def test_ignore_list_functionality(self, auditor, mock_idp):
auditor._DB.get_all_identity_providers.return_value = [mock_idp]

# Add the IDP to the ignore list
auditor._CONFIG = {
config_keys.AUDITOR_CONFIG: {
auditor.get_classname(): ["ignored_idp"]
}
}
auditor._CONFIG = {config_keys.AUDITOR_CONFIG: {auditor.get_classname(): ["ignored_idp"]}}

results = list(auditor.audit())
assert len(results) == 0 # No findings due to ignore list
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ def test_ignore_list_functionality(self, auditor, mock_idp):
auditor._DB.get_all_identity_providers.return_value = [mock_idp]

# Add the IDP to the ignore list
auditor._CONFIG = {
config_keys.AUDITOR_CONFIG: {
auditor.get_classname(): ["ignored_idp"]
}
}
auditor._CONFIG = {config_keys.AUDITOR_CONFIG: {auditor.get_classname(): ["ignored_idp"]}}

results = list(auditor.audit())
assert len(results) == 0 # No findings due to ignore list
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ def test_ignore_list_functionality(self, auditor, mock_idp):
auditor._DB.get_all_identity_providers.return_value = [mock_idp]

# Add the IDP to the ignore list
auditor._CONFIG = {
config_keys.AUDITOR_CONFIG: {
auditor.get_classname(): ["ignored_idp"]
}
}
auditor._CONFIG = {config_keys.AUDITOR_CONFIG: {auditor.get_classname(): ["ignored_idp"]}}

results = list(auditor.audit())
assert len(results) == 0 # No findings due to ignore list

0 comments on commit 79f9551

Please sign in to comment.