Skip to content

Commit

Permalink
update num queries
Browse files Browse the repository at this point in the history
  • Loading branch information
somewes committed Sep 26, 2023
1 parent 3739d30 commit a93c1f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity/tests/model_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,14 +1125,14 @@ def test_get_all_entities(self):
[None, account_kind],
])

with self.assertNumQueries(3):
with self.assertNumQueries(4):
membership_cache = EntityGroup.objects.get_membership_cache()
entities_by_kind = get_entities_by_kind(membership_cache=membership_cache)

for entity_group in entity_groups:
entity_group.get_all_entities(membership_cache, entities_by_kind)

with self.assertNumQueries(3):
with self.assertNumQueries(4):
get_entities_by_kind()

# Make sure to hit the no group cache case
Expand Down

0 comments on commit a93c1f7

Please sign in to comment.