diff --git a/lacommunaute/forum/tests/tests_views.py b/lacommunaute/forum/tests/tests_views.py index 9e8b4d071..b7dd457bc 100644 --- a/lacommunaute/forum/tests/tests_views.py +++ b/lacommunaute/forum/tests/tests_views.py @@ -188,12 +188,12 @@ def test_cannot_submit_post(self, *args): self.assertEqual(response.status_code, 200) self.assertNotContains(response, f'id="collapsePost{self.topic.pk}') - def test_queries(self): + def test_numqueries(self): ContentType.objects.clear_cache() TopicFactory.create_batch(20, with_post=True) self.client.force_login(self.user) - with self.assertNumQueries(22): + with self.assertNumQueries(28): self.client.get(self.url) def test_certified_post_display(self): diff --git a/lacommunaute/forum_conversation/tests/tests_views.py b/lacommunaute/forum_conversation/tests/tests_views.py index db7a70491..1ef6add8a 100644 --- a/lacommunaute/forum_conversation/tests/tests_views.py +++ b/lacommunaute/forum_conversation/tests/tests_views.py @@ -757,7 +757,7 @@ def test_numqueries(self): self.client.force_login(self.poster) # note vincentporte : to be optimized - with self.assertNumQueries(39): + with self.assertNumQueries(45): response = self.client.get(self.url) self.assertEqual(response.status_code, 200) diff --git a/lacommunaute/forum_upvote/tests/test_upvotelistview.py b/lacommunaute/forum_upvote/tests/test_upvotelistview.py index 793b4a1c4..3ff94c906 100644 --- a/lacommunaute/forum_upvote/tests/test_upvotelistview.py +++ b/lacommunaute/forum_upvote/tests/test_upvotelistview.py @@ -78,5 +78,5 @@ def test_numqueries(client, db, django_assert_num_queries): PostFactory.create_batch(20, topic=TopicFactory(), upvoted_by=[user]) # vincentporte : to be optimized - with django_assert_num_queries(37): + with django_assert_num_queries(43): client.get(url)