diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-11-22 17:52:24 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-11-22 17:52:24 +0300 |
commit | fbbf1427b3d46a2fa1e2598782e609907ebb58bf (patch) | |
tree | c363da6c6e296bfeda853882fc5be6a694f444f9 /tests/TestOAuth2.py | |
parent | c5e22c53cca2c0896bced64d306825a67ee16fcd (diff) |
Fix patching of getUserProfile
The actual profile is not necessary for this test. But this function always returns None and we shouldn't patch it to make it return something else.
Contributes to issue CURA-8539.
Diffstat (limited to 'tests/TestOAuth2.py')
-rw-r--r-- | tests/TestOAuth2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TestOAuth2.py b/tests/TestOAuth2.py index dcb3af6877..f34d5dcf5f 100644 --- a/tests/TestOAuth2.py +++ b/tests/TestOAuth2.py @@ -217,7 +217,7 @@ def test_failedLogin() -> None: assert authorization_service.getUserProfile() is None assert authorization_service.getAccessToken() is None -@patch.object(AuthorizationService, "getUserProfile", return_value=UserProfile()) +@patch.object(AuthorizationService, "getUserProfile") def test_storeAuthData(get_user_profile) -> None: preferences = Preferences() authorization_service = AuthorizationService(OAUTH_SETTINGS, preferences) |