mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
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.
This commit is contained in:
parent
c5e22c53cc
commit
fbbf1427b3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue