mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Add stubs for MachineManager testing
It also adds a first test that checks if the setActiveMachine
This commit is contained in:
parent
dd59b9167b
commit
b5c270f00a
3 changed files with 47 additions and 0 deletions
|
|
@ -77,6 +77,9 @@ def test_duration():
|
|||
# Fake a print duration message
|
||||
print_information._onPrintDurationMessage(0, {"Travel": 20}, [10])
|
||||
|
||||
# We only set a single time, so the total time must be of the same value.
|
||||
assert int(print_information.currentPrintTime) == 20
|
||||
|
||||
feature_print_times = print_information.getFeaturePrintTimes()
|
||||
assert int(feature_print_times["Travel"]) == 20
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue