From db927f0baae80250babb3873cb0990ca5c45a68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Wed, 11 Feb 2026 03:16:42 +0100 Subject: [PATCH] Assert 12 instead of 15 queries --- twitch/tests/test_feeds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitch/tests/test_feeds.py b/twitch/tests/test_feeds.py index cd01fe4..f2d0448 100644 --- a/twitch/tests/test_feeds.py +++ b/twitch/tests/test_feeds.py @@ -367,8 +367,8 @@ def test_organization_campaign_feed_queries_bounded(client: Client, django_asser _build_campaign(game, i) url: str = reverse("twitch:organization_campaign_feed", args=[org.twitch_id]) - # TODO(TheLovinator): 15 queries is still quite high for a feed - we should be able to optimize this further, but this is a good starting point to prevent regressions for now. # noqa: E501, TD003 - with django_assert_num_queries(15, exact=True): + # TODO(TheLovinator): 12 queries is still quite high for a feed - we should be able to optimize this further, but this is a good starting point to prevent regressions for now. # noqa: E501, TD003 + with django_assert_num_queries(12, exact=True): response: _MonkeyPatchedWSGIResponse = client.get(url) assert response.status_code == 200