From 9ba8a505fcb965f138ac4130140521f1fdefad24 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 14 Jan 2024 13:09:28 +0000 Subject: [PATCH] Fix query count for go view This might be non-deterministic --- website/search/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search/tests.py b/website/search/tests.py index f1ec2e4..ddedda7 100644 --- a/website/search/tests.py +++ b/website/search/tests.py @@ -179,7 +179,7 @@ class GoViewTestCase(TestCase): ) def test_by_slug(self) -> None: - with self.assertNumQueries(7): + with self.assertNumQueries(6): response = self.client.get(reverse("go"), {"q": self.post_2.slug}) self.assertRedirects(