From 78e7b0b9228f1270cc7a2b306216c5c50af9ee74 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 29 Jul 2024 17:17:50 -0300 Subject: [PATCH] Use a more specific assertion method in the test case --- tests/basic/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index a46141add..1eb060727 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -549,7 +549,7 @@ class TestCommands(TestCase): # Test the cmd_run method with a command that should not raise an error result = commands.cmd_run("exit 1", add_on_nonzero_exit=True) - self.assertTrue("I ran this command" in result) + self.assertIn("I ran this command", result) def test_cmd_add_drop_untracked_files(self): with GitTemporaryDirectory():