Skip to content

Commit

Permalink
Fix wrong assertion methods in test_eks (apache#37906)
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 authored and utkarsharma2 committed Apr 22, 2024
1 parent b134290 commit a99c9eb
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 a99c9eb

Please sign in to comment.