mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-15 08:59:32 -07:00
Fix unit-tests.
related to internal ticket CURA-11406
This commit is contained in:
parent
14ef281771
commit
831c72dbe5
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ def test__parseJWTNoRefreshToken():
|
|||
mock_reply = Mock() # The user profile that the service should respond with.
|
||||
mock_reply.error = Mock(return_value = QNetworkReply.NetworkError.NoError)
|
||||
http_mock = Mock()
|
||||
http_mock.get = lambda url, headers_dict, callback, error_callback: callback(mock_reply)
|
||||
http_mock.get = lambda url, headers_dict, callback, error_callback, timeout: callback(mock_reply)
|
||||
http_mock.readJSON = Mock(return_value = {"data": {"user_id": "id_ego_or_superego", "username": "Ghostkeeper"}})
|
||||
|
||||
with patch("UM.TaskManagement.HttpRequestManager.HttpRequestManager.getInstance", MagicMock(return_value = http_mock)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue