mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
STAR-322: Testing cloud printing
This commit is contained in:
parent
d482924ea2
commit
bfd236dae4
9 changed files with 129 additions and 37 deletions
12
plugins/UM3NetworkPrinting/tests/Cloud/Fixtures/__init__.py
Normal file
12
plugins/UM3NetworkPrinting/tests/Cloud/Fixtures/__init__.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
import json
|
||||
import os
|
||||
|
||||
|
||||
def readFixture(fixture_name: str) -> bytes:
|
||||
with open("{}/{}.json".format(os.path.dirname(__file__), fixture_name), "rb") as f:
|
||||
return f.read()
|
||||
|
||||
def parseFixture(fixture_name: str) -> dict:
|
||||
return json.loads(readFixture(fixture_name).decode())
|
Loading…
Add table
Add a link
Reference in a new issue