Skip to content

Commit

Permalink
Some tests misusing assertTrue for comparisons fix (#210)
Browse files Browse the repository at this point in the history
* Fix issue avoid-misusing-assert-true found at https://codereview.doctor

* Update test_unit.py

Co-authored-by: Batiste Bieler <[email protected]>
  • Loading branch information
code-review-doctor and batiste authored Feb 15, 2022
1 parent 44fcc73 commit 2d6105c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_strict_urls(self):
page2.save()

page1 = Page.objects.get(id=page1.id)
self.assertEqual(page1.get_children()[0], page2)
self.assertEqual(list(page1.get_children()), [page2])

self.assertEqual(
Page.objects.from_path('wrong/path/page2', 'en'),
Expand Down

0 comments on commit 2d6105c

Please sign in to comment.