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
luxcem
memopol
Commits
30a1c7d7
Commit
30a1c7d7
authored
Oct 12, 2016
by
Nicolas Joyard
Browse files
Fix test query counts
parent
22643a22
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/memopol/tests/base.py
View file @
30a1c7d7
...
...
@@ -49,8 +49,9 @@ class RepresentativeBaseTest(BaseTest):
- 2 for phone numbers related to addresses
- 1 for other phone numbers
- 2 for themes and theme scores
- 1 for DAL to fetch its initial value in the position form
"""
queries
=
BaseTest
.
left_pane_queries
+
1
4
queries
=
BaseTest
.
left_pane_queries
+
1
5
@
property
def
url
(
self
):
...
...
src/memopol/tests/response_fixtures/RepresentativePositionsTest.test_position_buttons.content
View file @
30a1c7d7
<button aria-controls="position-modal-566" aria-expanded="false" class="btn btn-default position-button" data-target="#position-modal-566" data-toggle="modal" id="position-button-566" type="button">
<h5>
Olivier Dussopt
</h5>
<div class="text-center">Oct. 3, 2009</div>
...
...
@@ -8,7 +12,11 @@
</button>
---
<button aria-controls="position-modal-567" aria-expanded="false" class="btn btn-default position-button" data-target="#position-modal-567" data-toggle="modal" id="position-button-567" type="button">
<h5>
Olivier Dussopt
</h5>
<div class="text-center">June 17, 2008</div>
...
...
src/memopol/tests/test_representative_positions.py
View file @
30a1c7d7
...
...
@@ -8,8 +8,9 @@ class RepresentativePositionsTest(RepresentativeBaseTest):
- One for positions
- One for position scores
- One for position themes
- One for position representatives
"""
queries
=
RepresentativeBaseTest
.
queries
+
3
queries
=
RepresentativeBaseTest
.
queries
+
4
def
test_queries
(
self
):
self
.
do_query_test
()
...
...
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