Skip to content

Commit

Permalink
fixes the number of queries run to display the search page, it was 35…
Browse files Browse the repository at this point in the history
…, now 15
  • Loading branch information
fredkingham committed Oct 30, 2018
1 parent 8a6482a commit 749a6c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,15 @@ def test_number_of_queries(self):
"James", "Bond", str(i)
)

with self.assertNumQueries(35):
with self.assertNumQueries(15):
self.get_response('{}/?query=Bond'.format(self.url))

for i in range(20):
self.create_patient(
"James", "Blofelt", str(i)
)

with self.assertNumQueries(35):
with self.assertNumQueries(15):
self.get_response('{}/?query=Blofelt'.format(self.url))

def test_with_multiple_patient_episodes(self):
Expand Down

0 comments on commit 749a6c6

Please sign in to comment.