Skip to content

Commit

Permalink
remove unnecceesary verbose assert message and avoid E501
Browse files Browse the repository at this point in the history
  • Loading branch information
n2ygk committed Sep 6, 2024
1 parent 17b1ba9 commit 6bf75c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
)

0 comments on commit 6bf75c0

Please sign in to comment.