Skip to content

Commit

Permalink
Use assertMaxQueries in place of exact query number #138
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Aug 2, 2024
1 parent 6c1cd66 commit e5820e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product_portfolio/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e5820e2

Please sign in to comment.