diff --git a/evap/results/tests/test_views.py b/evap/results/tests/test_views.py index 26191f4a0..8ae8a7997 100644 --- a/evap/results/tests/test_views.py +++ b/evap/results/tests/test_views.py @@ -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 = "responsible_contributor@institution.example.com" + user = "responsible_contributor@institution.example.com" # 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,13 +943,13 @@ 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: @@ -957,7 +957,7 @@ def test_textanswer_visibility_for_responsible_contributor(self): 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)