Skip to content

Commit

Permalink
Restore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Mar 23, 2024
1 parent 3973333 commit ceeef50
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,22 @@ def test_delete_with_non_existent_stack(
status = self.actions.delete()
assert status == StackStatus.COMPLETE

def test_describe_stack_sends_correct_request(self):
self.actions.describe()
self.actions.connection_manager.call.assert_called_with(
service="cloudformation",
command="describe_stacks",
kwargs={"StackName": sentinel.external_name},
)

def test_describe_events_sends_correct_request(self):
self.actions.describe_events()
self.actions.connection_manager.call.assert_called_with(
service="cloudformation",
command="describe_stack_events",
kwargs={"StackName": sentinel.external_name},
)

def test_describe_resources_sends_correct_request(self):
self.actions.connection_manager.call.return_value = {
"StackResources": [
Expand Down

0 comments on commit ceeef50

Please sign in to comment.