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:14:05 +0300
committerGhostkeeper <rubend@tutanota.com>2021-11-22 17:14:05 +0300
commita8a41381cb8493ff2254054c5c740051f1dd4131 (patch)
tree8baf7084881fe25abe70b455fba26c71e841e94c /tests
parent41393504963c9e34f2273954d9614d3d29e09c6e (diff)
Remove test simulating request error in user profile
We're no longer generating that error. We're generating a QNetworkReply with a built-in error code and those errors are handled the same way as the failed requests tested above. Contributes to issue CURA-8539.
Diffstat (limited to 'tests')
-rw-r--r--tests/TestOAuth2.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/TestOAuth2.py b/tests/TestOAuth2.py
index d39dc35258..cb28d8625c 100644
--- a/tests/TestOAuth2.py
+++ b/tests/TestOAuth2.py
@@ -199,12 +199,6 @@ def test_refreshAccesTokenWithoutData():
authorization_service.refreshAccessToken()
authorization_service.onAuthStateChanged.emit.assert_not_called()
-def test_userProfileException():
- authorization_service = AuthorizationService(OAUTH_SETTINGS, Preferences())
- authorization_service.initialize()
- authorization_service._parseJWT = MagicMock(side_effect=requests.exceptions.ConnectionError)
- assert authorization_service.getUserProfile() is None
-
def test_failedLogin() -> None:
authorization_service = AuthorizationService(OAUTH_SETTINGS, Preferences())
authorization_service.onAuthenticationError.emit = MagicMock()