Skip to content

Commit

Permalink
linter happy now :)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrnr committed Jul 15, 2024
1 parent a569f03 commit 5341dc8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions evap/results/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 5341dc8

Please sign in to comment.