-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -470,7 +470,7 @@ def test_heading_question_filtering(self): | |
@override_settings(VOTER_COUNT_NEEDED_FOR_PUBLISHING_RATING_RESULTS=0) | ||
def test_default_view( | ||
self, | ||
): # pylint: disable=too-many-return-statements | ||
): | ||
cache_results(self.evaluation) | ||
|
||
page_without_get_parameter = self.app.get(self.url, user=self.manager) | ||
|
@@ -924,17 +924,17 @@ def test_textanswer_visibility_for_responsible_contributor(self): | |
".responsible_contributor_additional_orig_published.", | ||
] | ||
|
||
self.user = "[email protected]" | ||
user = "[email protected]" | ||
|
||
# general | ||
# full: | ||
page = self.app.get("/results/semester/1/evaluation/1?view_general_text=full", user=self.user) | ||
page = self.app.get("/results/semester/1/evaluation/1?view_general_text=full", user=user) | ||
for answer in dynamic_general_answers + dynamic_responsible_answers: | ||
self.assertIn(answer, page) | ||
self.helper_static(page) | ||
|
||
# ratings: | ||
page = self.app.get("/results/semester/1/evaluation/1?view_general_text=ratings", user=self.user) | ||
page = self.app.get("/results/semester/1/evaluation/1?view_general_text=ratings", user=user) | ||
for answer in dynamic_general_answers: | ||
self.assertNotIn(answer, page) | ||
for answer in dynamic_responsible_answers: | ||
|
@@ -943,21 +943,21 @@ def test_textanswer_visibility_for_responsible_contributor(self): | |
|
||
# contributor | ||
# full | ||
page = self.app.get("/results/semester/1/evaluation/1?view_contributor_results=full", user=self.user) | ||
page = self.app.get("/results/semester/1/evaluation/1?view_contributor_results=full", user=user) | ||
for answer in dynamic_general_answers + dynamic_responsible_answers: | ||
self.assertIn(answer, page) | ||
self.helper_static(page) | ||
|
||
# ratings | ||
page = self.app.get("/results/semester/1/evaluation/1?view_contributor_results=ratings", user=self.user) | ||
page = self.app.get("/results/semester/1/evaluation/1?view_contributor_results=ratings", user=user) | ||
for answer in dynamic_general_answers: | ||
self.assertIn(answer, page) | ||
for answer in dynamic_responsible_answers: | ||
self.assertNotIn(answer, page) | ||
self.helper_static(page) | ||
|
||
# personal: | ||
page = self.app.get("/results/semester/1/evaluation/1?view_contributor_results=personal", user=self.user) | ||
page = self.app.get("/results/semester/1/evaluation/1?view_contributor_results=personal", user=user) | ||
for answer in dynamic_general_answers + dynamic_responsible_answers: | ||
self.assertIn(answer, page) | ||
self.helper_static(page) | ||
|