Skip to content

Commit

Permalink
add assertion for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
helylle committed Oct 4, 2024
1 parent 9793145 commit 80306de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eduid/webapp/common/authn/tests/test_vccs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Any, NoReturn, cast
from unittest.mock import patch
from unittest.mock import MagicMock, patch

from eduid.userdb.credentials.password import Password
from eduid.userdb.fixtures.users import UserFixtures
Expand Down Expand Up @@ -138,6 +138,7 @@ def test_change_password_error_adding(self) -> None:
from eduid.webapp.common.authn.testing import MockVCCSClient

with patch.object(MockVCCSClient, "add_credentials"):
assert isinstance(MockVCCSClient.add_credentials, MagicMock)
MockVCCSClient.add_credentials.return_value = False
added = vccs_module.change_password(
self.user, new_password="wxyz", old_password="abcd", application="test", vccs=self.vccs_client
Expand Down

0 comments on commit 80306de

Please sign in to comment.