diff --git a/tests/providers/amazon/aws/operators/test_eks.py b/tests/providers/amazon/aws/operators/test_eks.py index f002240eaba9..b813afe2c259 100644 --- a/tests/providers/amazon/aws/operators/test_eks.py +++ b/tests/providers/amazon/aws/operators/test_eks.py @@ -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")