Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
swainn committed May 28, 2024
1 parent 202657e commit 4010f32
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,18 @@ def test_extra_data(self):
scope="scope",
)

mock_details = dict(
name="",
alias="",
)

hydro_share_auth2_obj = HydroShareOAuth2()

hydro_share_auth2_obj.set_expires_in_to = 100

ret = hydro_share_auth2_obj.extra_data("user1", "0001-009", mock_response)
ret = hydro_share_auth2_obj.extra_data(
"user1", "0001-009", mock_response, mock_details
)

self.assertEqual("[email protected]", ret["email"])
self.assertEqual("token1", ret["access_token"])
Expand Down

0 comments on commit 4010f32

Please sign in to comment.