Commit e03f7bc8 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Fix client test

parent 4d310990
...@@ -7,8 +7,11 @@ class RepresentativeManagerTest(test.TestCase): ...@@ -7,8 +7,11 @@ class RepresentativeManagerTest(test.TestCase):
fixtures = ['representatives_votes_test.json'] fixtures = ['representatives_votes_test.json']
def functional_test(self, queries, url): def functional_test(self, queries, url):
client = test.client.Client()
client.get(url)
with self.assertNumQueries(queries): with self.assertNumQueries(queries):
result = test.client.Client().get( result = client.get(
url, url,
HTTP_ACCEPT='application/json; indent=4', HTTP_ACCEPT='application/json; indent=4',
) )
......
Supports Markdown
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