Skip to content

Commit

Permalink
Fix wrong assertion methods in test_eks (#37906)
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 authored Mar 5, 2024
1 parent 8309c4b commit 1b12120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/providers/amazon/aws/operators/test_eks.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def test_existing_cluster_not_in_use_with_wait(

self.delete_cluster_operator.execute({})

mock_list_nodegroups.assert_called_once # noqa: PGH005 (fixme: called 0 times)
mock_list_nodegroups.assert_not_called()
mock_delete_cluster.assert_called_once_with(name=self.cluster_name)
mock_waiter.assert_called_with(mock.ANY, name=CLUSTER_NAME)
assert_expected_waiter_type(mock_waiter, "ClusterDeleted")
Expand Down

0 comments on commit 1b12120

Please sign in to comment.