Skip to content

Commit

Permalink
Add test coverage to the reauth failure that caused this fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenbrot committed Aug 12, 2022
1 parent bd0777a commit fdb77e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkist/net/globus/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_get_refresh_token_authorizer(mocker):
def test_ensure_auth_decorator(mocker):
error = globus_sdk.AuthAPIError(mocker.MagicMock())
mocker.patch.object(error, "http_status", 400)
mocker.patch.object(error, "message", "invalid_grant")
mocker.patch.object(error, "message", '{"error":"invalid_grant"}')
reauth = mocker.patch("dkist.net.globus.auth.get_refresh_token_authorizer")

called = [False]
Expand Down

0 comments on commit fdb77e4

Please sign in to comment.