diff --git a/network-api/networkapi/wagtailpages/tests/buyersguide/test_homepage.py b/network-api/networkapi/wagtailpages/tests/buyersguide/test_homepage.py index 0a713a3460b..5a72d47f521 100644 --- a/network-api/networkapi/wagtailpages/tests/buyersguide/test_homepage.py +++ b/network-api/networkapi/wagtailpages/tests/buyersguide/test_homepage.py @@ -169,7 +169,7 @@ def test_serve_page_no_products(self): products = ProductPage.objects.descendant_of(self.bg) products.delete() self.assertEqual(products.count(), 0) - query_number = 52 + query_number = 45 with self.assertNumQueries(query_number): response = self.client.get(self.bg.url) @@ -179,7 +179,7 @@ def test_serve_page_no_products(self): def test_serve_page_one_product(self): products = ProductPage.objects.descendant_of(self.bg) self.assertEqual(products.count(), 1) - query_number = 67 + query_number = 60 with self.assertNumQueries(query_number): response = self.client.get(self.bg.url) @@ -193,7 +193,7 @@ def test_serve_page_many_products(self): buyersguide_factories.ProductPageFactory(parent=self.bg, with_random_categories=True) products = ProductPage.objects.descendant_of(self.bg) self.assertEqual(products.count(), additional_products_count + 1) - query_number = 68 + query_number = 61 with self.assertNumQueries(query_number): response = self.client.get(self.bg.url) @@ -207,7 +207,7 @@ def test_serve_page_many_products_logged_in(self): buyersguide_factories.ProductPageFactory(parent=self.bg, with_random_categories=True) products = ProductPage.objects.descendant_of(self.bg) self.assertEqual(products.count(), additional_products_count + 1) - query_number = 74 + query_number = 67 self.client.force_login(user=self.create_test_user()) with self.assertNumQueries(query_number):