diff --git a/test/test_oauth2.py b/test/test_oauth2.py index 426c19b4..2a4bf145 100644 --- a/test/test_oauth2.py +++ b/test/test_oauth2.py @@ -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", )