diff --git a/evap/evaluation/tests/test_models.py b/evap/evaluation/tests/test_models.py index fcb9839bf2..0753d9c1d3 100644 --- a/evap/evaluation/tests/test_models.py +++ b/evap/evaluation/tests/test_models.py @@ -127,11 +127,10 @@ def test_in_evaluation_to_published(self): wait_for_grade_upload_before_publishing=False, ) - with patch( - "evap.evaluation.models.EmailTemplate.send_participant_publish_notifications" - ) as participant_mock, patch( - "evap.evaluation.models.EmailTemplate.send_contributor_publish_notifications" - ) as contributor_mock: + with ( + patch("evap.evaluation.models.EmailTemplate.send_participant_publish_notifications") as participant_mock, + patch("evap.evaluation.models.EmailTemplate.send_contributor_publish_notifications") as contributor_mock, + ): Evaluation.update_evaluations() participant_mock.assert_called_once_with([evaluation]) diff --git a/evap/staff/tests/test_forms.py b/evap/staff/tests/test_forms.py index 274ef08f9d..66e3857921 100644 --- a/evap/staff/tests/test_forms.py +++ b/evap/staff/tests/test_forms.py @@ -965,9 +965,10 @@ def test_course_change_updates_cache(self): form_data = get_form_data_from_instance(EvaluationForm, evaluation) form = EvaluationForm(form_data, instance=evaluation, semester=semester) self.assertTrue(form.is_valid()) - with patch("evap.results.views._delete_course_template_cache_impl") as delete_call, patch( - "evap.results.views.update_template_cache" - ) as update_call: + with ( + patch("evap.results.views._delete_course_template_cache_impl") as delete_call, + patch("evap.results.views.update_template_cache") as update_call, + ): # save without changes form.save() self.assertEqual(Evaluation.objects.get(pk=evaluation.pk).course, course1) diff --git a/evap/student/tests/test_views.py b/evap/student/tests/test_views.py index 8f5c72ef0f..c1960ad589 100644 --- a/evap/student/tests/test_views.py +++ b/evap/student/tests/test_views.py @@ -169,9 +169,9 @@ def fill_form(self, form, fill_general_complete=True, fill_contributors_complete form[answer_field_id(contribution, questionnaire, self.top_text_question)] = "some text" form[answer_field_id(contribution, questionnaire, self.top_grade_question)] = 3 form[answer_field_id(contribution, questionnaire, self.top_likert_question)] = 1 - form[ - answer_field_id(contribution, questionnaire, self.top_likert_question, additional_textanswer=True) - ] = "some additional text" + form[answer_field_id(contribution, questionnaire, self.top_likert_question, additional_textanswer=True)] = ( + "some additional text" + ) questionnaire = self.bottom_general_questionnaire form[answer_field_id(contribution, questionnaire, self.bottom_text_question)] = "some bottom text" diff --git a/requirements-dev.txt b/requirements-dev.txt index c147c2c792..91b63ec767 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ -r requirements.txt -black~=23.12.0 +black~=24.1.1 coverage[toml] django-debug-toolbar~=4.0 django-stubs==4.2.6