Skip to content

Commit

Permalink
fix(tests_views.py): nombre des queries augmenté
Browse files Browse the repository at this point in the history
  • Loading branch information
calummackervoy committed Jun 18, 2024
1 parent 1f1e551 commit efe3505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lacommunaute/forum/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_queries(self):

TopicFactory.create_batch(20, with_post=True)
self.client.force_login(self.user)
with self.assertNumQueries(23):
with self.assertNumQueries(24):
self.client.get(self.url)

def test_certified_post_display(self):
Expand Down Expand Up @@ -471,7 +471,7 @@ def test_filtered_queryset_on_tag(self):
tag = faker.word()
topic = TopicFactory(forum=self.forum, with_tags=[tag], with_post=True)

with self.assertNumQueries(20):
with self.assertNumQueries(21):
response = self.client.get(
reverse("forum_extension:forum", kwargs={"pk": self.forum.pk, "slug": self.forum.slug}), {"tags": tag}
)
Expand Down

0 comments on commit efe3505

Please sign in to comment.