From 549857d96fadb9ec036a4634f27ca58153074e1f Mon Sep 17 00:00:00 2001 From: Amanda Lim-Cabuloy Date: Wed, 8 Jan 2025 14:54:08 +0800 Subject: [PATCH] Replace deprecated methods --- tbx/blog/tests/test_models.py | 2 +- tbx/work/tests/test_models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tbx/blog/tests/test_models.py b/tbx/blog/tests/test_models.py index aa47d6a94..569338039 100644 --- a/tbx/blog/tests/test_models.py +++ b/tbx/blog/tests/test_models.py @@ -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) ) diff --git a/tbx/work/tests/test_models.py b/tbx/work/tests/test_models.py index c1c90d12e..cc84d46ca 100644 --- a/tbx/work/tests/test_models.py +++ b/tbx/work/tests/test_models.py @@ -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) )