Skip to content

Commit

Permalink
Fix auth tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dknowles2 committed Dec 14, 2022
1 parent 6bc4f65 commit 16c56e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pyschlage import auth as _auth


@mock.patch("requests.request")
@mock.patch("requests.Request")
@mock.patch("pycognito.utils.RequestsSrpAuth")
@mock.patch("pycognito.Cognito")
def test_authenticate(mock_cognito, mock_srp_auth, mock_request):
Expand All @@ -18,7 +18,7 @@ def test_authenticate(mock_cognito, mock_srp_auth, mock_request):
)

auth.authenticate()
mock_srp_auth.return_value.assert_called_once_with()
mock_srp_auth.return_value.assert_called_once_with(mock_request.return_value)


@mock.patch("requests.request")
Expand Down

0 comments on commit 16c56e8

Please sign in to comment.