From 6bf75c0f1882ad0a1371e91f2bcdf8d676265ca9 Mon Sep 17 00:00:00 2001 From: Alan Crosswell Date: Thu, 5 Sep 2024 14:18:03 -0400 Subject: [PATCH] remove unnecceesary verbose assert message and avoid E501 --- tests/test_commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index ff21d2757..f9b030dd7 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -145,6 +145,5 @@ def test_validation_failed_message(self): self.assertIn("783", output_str) # newer Django (>5.1) changes the error message from "does not exist" to "is not a valid choice" self.assertTrue( - any(substring in output_str for substring in ["does not exist", "is not a valid choice"]), - f"Output did not contain 'does not exist' or 'is not a valid choice'. Actual output: {output_str}", + any(substring in output_str for substring in ["does not exist", "is not a valid choice"]) )