Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Political Memory
memopol
Commits
a2782dd8
Commit
a2782dd8
authored
Oct 05, 2016
by
Nicolas Joyard
Browse files
Fix client tests
parent
82a3b1dc
Changes
1
Show whitespace changes
Inline
Side-by-side
src/representatives/tests/test_views.py
View file @
a2782dd8
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment