Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 3, 2024
1 parent 6ab4551 commit 26bf76f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sceptre/plan/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ def update(self):
}

if self.stack.disable_rollback:
update_stack_kwargs.update({"DisableRollback": self.stack.disable_rollback})
update_stack_kwargs.update(
{"DisableRollback": self.stack.disable_rollback}
)

update_stack_kwargs.update(self.stack.template.get_boto_call_parameter())
update_stack_kwargs.update(self._get_role_arn())
Expand Down
4 changes: 3 additions & 1 deletion tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def test_update_disable_rollback_overrides_on_failure(
"DisableRollback": True,
},
)
mock_wait_for_completion.assert_called_once_with(sentinel.stack_timeout, boto_response=ANY)
mock_wait_for_completion.assert_called_once_with(
sentinel.stack_timeout, boto_response=ANY
)

@patch("sceptre.plan.actions.StackActions._wait_for_completion")
def test_update_cancels_after_timeout(self, mock_wait_for_completion):
Expand Down

0 comments on commit 26bf76f

Please sign in to comment.