Skip to content

Commit

Permalink
Update black requirement from ~=23.12.0 to ~=24.1.1 (e-valuation#2109)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Feb 5, 2024
1 parent 19cd751 commit c749b9c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
9 changes: 4 additions & 5 deletions evap/evaluation/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
7 changes: 4 additions & 3 deletions evap/staff/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions evap/student/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c749b9c

Please sign in to comment.