Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-11-22 17:52:24 +0300
committerGhostkeeper <rubend@tutanota.com>2021-11-22 17:52:24 +0300
commitfbbf1427b3d46a2fa1e2598782e609907ebb58bf (patch)
treec363da6c6e296bfeda853882fc5be6a694f444f9 /tests
parentc5e22c53cca2c0896bced64d306825a67ee16fcd (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')
-rw-r--r--tests/TestOAuth2.py2
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)