Commit e03f7bc8 authored by Nicolas Joyard's avatar Nicolas Joyard

Fix client test

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