Fix query count for go view

This might be non-deterministic
This commit is contained in:
Jake Howard 2024-01-14 13:09:28 +00:00
parent bbf7411f50
commit 9ba8a505fc
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -179,7 +179,7 @@ class GoViewTestCase(TestCase):
) )
def test_by_slug(self) -> None: 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}) response = self.client.get(reverse("go"), {"q": self.post_2.slug})
self.assertRedirects( self.assertRedirects(