Commit a2782dd8 authored by Nicolas Joyard's avatar Nicolas Joyard

Fix client tests

parent 82a3b1dc
......@@ -7,8 +7,13 @@ class RepresentativeManagerTest(test.TestCase):
fixtures = ['representatives_test.json']
def functional_test(self, queries, url):
client = test.client.Client()
# First query to setup session
client.get(url)
with self.assertNumQueries(queries):
result = test.client.Client().get(url)
result = client.get(url)
Response.for_test(self).assertNoDiff(result)
def test_constituencies_api(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment