From b649261dbd19c7c6666b70c870ebda92b37fcf2c Mon Sep 17 00:00:00 2001 From: Jhonatan Lopes Date: Fri, 9 Feb 2024 18:26:11 -0300 Subject: [PATCH] Fix tests --- .../wagtailpages/tests/buyersguide/test_homepage.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network-api/networkapi/wagtailpages/tests/buyersguide/test_homepage.py b/network-api/networkapi/wagtailpages/tests/buyersguide/test_homepage.py index 672c89a9dc5..0a713a3460b 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 = 47 + query_number = 52 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 = 62 + query_number = 67 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 = 63 + query_number = 68 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 = 69 + query_number = 74 self.client.force_login(user=self.create_test_user()) with self.assertNumQueries(query_number):