Skip to content

Commit

Permalink
Replace deprecated method assertQuerysetEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
SharmaineLim committed Jan 8, 2025
1 parent 9c86532 commit 79b8905
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tbx/blog/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_blog_posts_property(self):
"""Checks that the blog_posts property returns public and published blog posts under the given blog index."""
another_blog = BlogIndexPageFactory(title="Tech blog")
BlogPageFactory(title="Tech blog", parent=another_blog)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
self.blog_index.blog_posts, BlogPage.objects.filter(pk=self.blog_post.pk)
)

Expand Down
2 changes: 1 addition & 1 deletion tbx/work/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_works_property(self):
"""Checks that the works property returns public and published work pages under the given work index."""
another_work_index = WorkIndexPageFactory(title="Another work index")
WorkPageFactory(title="Another work page", parent=another_work_index)
self.assertQuerysetEqual(
self.assertQuerySetEqual(
self.work_index.works, WorkPage.objects.filter(pk=self.work_page.pk)
)

Expand Down

0 comments on commit 79b8905

Please sign in to comment.