Add stubs for MachineManager testing

It also adds a first test that checks if the setActiveMachine
This commit is contained in:
Jaime van Kessel 2019-02-22 13:49:31 +01:00
parent dd59b9167b
commit b5c270f00a
3 changed files with 47 additions and 0 deletions

View file

@ -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