Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCloudSec committed Feb 28, 2025
1 parent 83c1414 commit aaa6e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/providers/aws/services/sns/sns_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def get_topic_attributes(self, _):
assert dummy_topic.policy is None
assert dummy_topic.kms_master_key_id is None
# Optionally, assert that the error message was logged
assert "Test exception in get_topic_attributes" in caplog.text
assert "An error occurred" in caplog.text

def test_list_subscriptions_by_topic_exception(self, caplog):
"""
Expand Down Expand Up @@ -288,7 +288,7 @@ def list_subscriptions_by_topic(self, _):
# Verify that due to the exception, the subscriptions for the dummy topic remain an empty list.
assert dummy_topic.subscriptions == []
# Also verify that the exception message was logged.
assert "Test exception in list_subscriptions_by_topic" in caplog.text
assert "An error occurred" in caplog.text

def test_get_topic_attributes_no_policy_no_kms(self):
"""
Expand Down

0 comments on commit aaa6e02

Please sign in to comment.