Skip to content

Commit

Permalink
Change unit test mock call from called_with to assert_called_once_with.
Browse files Browse the repository at this point in the history
  • Loading branch information
felder101 committed Dec 13, 2023
1 parent 81525d2 commit 766e07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/tests/test_quiz_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_email_certificate_config(
quiz_service = QuizService(db_with_data)
quiz_service.email_certificate('Test_User', 'Travel Training for Ministry of Magic', '[email protected]', b'')
smtp_instance.starttls.assert_called()
smtp_instance.login.called_with(user='Aeolus', password='cycl0ps')
smtp_instance.login.assert_called_once_with(user='Aeolus', password='cycl0ps')


def test_email_certificate_passing(
Expand Down

0 comments on commit 766e07d

Please sign in to comment.