Skip to content

Commit 8aef61f

Browse files
committed
remove unnecceesary verbose assert message and avoid E501
1 parent 2befdb1 commit 8aef61f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,5 @@ def test_validation_failed_message(self):
145145
self.assertIn("783", output_str)
146146
# newer Django (>5.1) changes the error message from "does not exist" to "is not a valid choice"
147147
self.assertTrue(
148-
any(substring in output_str for substring in ["does not exist", "is not a valid choice"]),
149-
f"Output did not contain 'does not exist' or 'is not a valid choice'. Actual output: {output_str}",
148+
any(substring in output_str for substring in ["does not exist", "is not a valid choice"])
150149
)

0 commit comments

Comments
 (0)