mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
STAR-322: Fixing style errors
This commit is contained in:
parent
7668801564
commit
d54fc4182b
15 changed files with 69 additions and 72 deletions
|
@ -14,9 +14,6 @@ from UM.Signal import Signal
|
|||
# After patching the QNetworkManager class, requests are prepared before they can be executed.
|
||||
# Any requests not prepared beforehand will cause KeyErrors.
|
||||
class NetworkManagerMock:
|
||||
# signals used in the network manager.
|
||||
finished = Signal()
|
||||
authenticationRequired = Signal()
|
||||
|
||||
# an enumeration of the supported operations and their code for the network access manager.
|
||||
_OPERATIONS = {
|
||||
|
@ -33,6 +30,10 @@ class NetworkManagerMock:
|
|||
self.replies = {} # type: Dict[Tuple[str, str], QNetworkReply]
|
||||
self.request_bodies = {} # type: Dict[Tuple[str, str], bytes]
|
||||
|
||||
# signals used in the network manager.
|
||||
self.finished = Signal()
|
||||
self.authenticationRequired = Signal()
|
||||
|
||||
## Mock implementation of the get, post, put, delete and head methods from the network manager.
|
||||
# Since the methods are very simple and the same it didn't make sense to repeat the code.
|
||||
# \param method: The method being called.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue