8000 Fix issue avoid-misusing-assert-true found at https://codereview.doc… · python/pythondotorg@81e2634 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81e2634

Browse files
Fix issue avoid-misusing-assert-true found at https://codereview.doctor (#1987)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
1 parent 1037cbb commit 81e2634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jobs/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_visible_manager(self):
7676
j3 = factories.ApprovedJobFactory(expires=past)
7777

7878
visible = Job.objects.visible()
79-
self.assertTrue(len(visible), 1)
79+
self.assertEqual(len(visible), 1)
8080
self.assertIn(j1, visible)
8181
self.assertNotIn(j2, visible)
8282
self.assertNotIn(j3, visible)

0 commit comments

Comments
 (0)
0