From e5820e27d42e18bdb11638fbae4e4486f1b38a9a Mon Sep 17 00:00:00 2001 From: tdruez Date: Fri, 2 Aug 2024 19:49:54 +0400 Subject: [PATCH] Use assertMaxQueries in place of exact query number #138 Signed-off-by: tdruez --- product_portfolio/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product_portfolio/tests/test_views.py b/product_portfolio/tests/test_views.py index 3615e369..6d6a90fb 100644 --- a/product_portfolio/tests/test_views.py +++ b/product_portfolio/tests/test_views.py @@ -229,7 +229,7 @@ def test_product_portfolio_detail_view_tab_dependency_view(self): self.client.login(username="nexb_user", password="secret") url = self.product1.get_url("tab_dependencies") - with self.assertNumQueries(7): + with self.assertMaxQueries(7): response = self.client.get(url) self.assertContains(response, "0 results")