Skip to content

Commit

Permalink
test: fixed test with data returned in get_device_code call
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Barcella committed Jun 3, 2024
1 parent e5db931 commit 077fcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def testOAuth2DeviceCodeGetDeviceCode(self):

resp = unittest.mock.MagicMock(
status=200,
data=b'{"device_code":"PAPAYA","user_code":"TEDDY-BEAR","scope":{"situation":"r","settings":"a"},"verification_uri":"https://fattureincloud.it/connetti","interval":5,"expires_in":300}',
data=b'{"data":{"device_code":"PAPAYA","user_code":"TEDDY-BEAR","scope":{"situation":"r","settings":"a"},"verification_uri":"https://fattureincloud.it/connetti","interval":5,"expires_in":300}}',
reason="OK",
)

Expand Down

0 comments on commit 077fcf2

Please sign in to comment.