Skip to content

Commit

Permalink
Fix issue avoid-misusing-assert-true found at https://codereview.doctor
Browse files Browse the repository at this point in the history
 (#1987)

Co-authored-by: Jacob Coffee <[email protected]>
  • Loading branch information
code-review-doctor and JacobCoffee authored Sep 13, 2024
1 parent 1037cbb commit 81e2634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_visible_manager(self):
j3 = factories.ApprovedJobFactory(expires=past)

visible = Job.objects.visible()
self.assertTrue(len(visible), 1)
self.assertEqual(len(visible), 1)
self.assertIn(j1, visible)
self.assertNotIn(j2, visible)
self.assertNotIn(j3, visible)
Expand Down

0 comments on commit 81e2634

Please sign in to comment.