Skip to content

Commit

Permalink
Py3.12 does not like called_once_with() anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed Mar 24, 2024
1 parent 79d9dd3 commit 125dfb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def test_configuration_errors_should_be_delivered_to_log_in():
auth = Auth(None) # No exception raised
with mock.patch.object(auth, "_render_auth_error") as mock_render_auth_error:
auth.login(object())
assert mock_render_auth_error.called_once_with(
mock_render_auth_error.assert_called_once_with(
mock.ANY, error="configuration_error", error_description=mock.ANY)

0 comments on commit 125dfb5

Please sign in to comment.