Skip to content

Commit

Permalink
feat(#2737): Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed Feb 16, 2025
1 parent 2ced5a9 commit aa5b328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amy/dashboard/tests/test_instructor_recruitment_views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import date
from unittest.mock import MagicMock, call, patch
from unittest.mock import MagicMock, patch
from urllib.parse import quote

from django.contrib.messages.api import MessageFailure
Expand Down Expand Up @@ -358,7 +358,7 @@ def test_form_valid__obj_saved_with_recruitment_and_person(self):
# MessageFailure is expected here, it happens after the form saving part
view.form_valid(form_mock)
# Assert
form_mock.save.has_calls(call(commit=False))
form_mock.save.assert_any_call(commit=False)
form_mock.save().save.assert_called_once_with()
self.assertEqual(form_mock.save().recruitment, recruitment)
self.assertEqual(form_mock.save().person, person)
Expand Down

0 comments on commit aa5b328

Please sign in to comment.