Skip to content

Commit

Permalink
add-test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Oct 27, 2024
1 parent b181961 commit 58ca95d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_diffing/test_stack_differ.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ def test_diff__deployed_stack_does_not_exist__returns_is_deployed_as_false(self)
diff = self.differ.diff(self.actions)
assert diff.is_deployed is False

def test_diff__raises_some_other_client_error(self):
self.actions.describe.side_effect = ClientError(
{"Error": {"Code": "ForbiddenException", "Message": "No access"}},
"DescribeStacks",
)
with pytest.raises(ClientError, match="No access"):
self.differ.diff(self.actions)

def test_diff__deployed_stack_does_not_exist__compares_none_to_generated_config(
self,
):
Expand Down

0 comments on commit 58ca95d

Please sign in to comment.