Try other patch values for relative imports

This commit is contained in:
ChrisTerBeke 2019-01-17 10:22:37 +01:00
parent d9a8bb0eb7
commit aab1fbc73f
4 changed files with 6 additions and 9 deletions

View file

@ -41,7 +41,7 @@ class TestCloudOutputDevice(TestCase):
self.network = NetworkManagerMock()
self.account = MagicMock(isLoggedIn=True, accessToken="TestAccessToken")
self.onError = MagicMock()
with patch("plugins.UM3NetworkPrinting.src.Cloud.CloudApiClient.QNetworkAccessManager",
with patch("CloudApiClient.QNetworkAccessManager",
return_value = self.network):
self._api = CloudApiClient(self.account, self.onError)