Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Anthony
memopol
Commits
675780a9
Commit
675780a9
authored
Apr 18, 2016
by
Nicolas Joyard
Browse files
Avoid ContentType UK error and fix expected group URLs
parent
d3148298
Changes
2
Hide whitespace changes
Inline
Side-by-side
memopol/tests/test_representatives_detail.py
View file @
675780a9
...
...
@@ -35,7 +35,7 @@ class RepresentativeDetailTest(UrlGetTestMixin, TestCase):
def
test_current_mandate_display
(
self
):
expected
=
''
.
join
((
"<a href='/legislature/representative/group/Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>"
,
# noqa
"<a href='/legislature/representative/group/
European%20Parliament/
Group%20of%20the%20Progressive%20Alliance%20of%20Socialists%20and%20Democrats%20in%20the%20European%20Parliament/'>"
,
# noqa
"Member of Group of the Progressive Alliance of Socialists and Democrats in the European Parliament"
,
# noqa
"</a>"
,
))
...
...
representatives_positions/tests/test_functional.py
View file @
675780a9
...
...
@@ -76,9 +76,10 @@ class PositionTest(TestCase):
# Trigger irrelevant queries that happen only once ie. constance before
# testing actual page queries.
self
.
client
.
get
(
position
.
get_absolute_url
())
with
self
.
assertNumQueries
(
3
):
with
self
.
assertNumQueries
(
4
):
# One for position and rep and score
# One for rep mandates
# One for rep chamber
# One for position tags
response
=
self
.
client
.
get
(
position
.
get_absolute_url
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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