mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
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.
This commit is contained in:
parent
4139350496
commit
a8a41381cb
1 changed files with 0 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue