From 33b45b68e26c7122bf8d495cbd75f18ba599acc6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 2 Oct 2024 12:03:47 -0700 Subject: [PATCH] copy --- tests/basic/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic/test_models.py b/tests/basic/test_models.py index 6071e6c40..f14183b4e 100644 --- a/tests/basic/test_models.py +++ b/tests/basic/test_models.py @@ -73,7 +73,7 @@ class TestModels(unittest.TestCase): result ) # Should return True because there's a problem with the editor model mock_io.tool_warning.assert_called_with(ANY) # Ensure a warning was issued - self.assertEqual(mock_io.tool_warning.call_count, 2) # Expect two warnings + self.assertGreaterEqual(mock_io.tool_warning.call_count, 2) # Expect two warnings warning_messages = [call.args[0] for call in mock_io.tool_warning.call_args_list] self.assertTrue( any("bogus-model" in msg for msg in warning_messages)