mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 05:48:59 +08:00
Make the duration test first zero the times before sending print duration message.
This commit is contained in:
parent
198ea3c74f
commit
ee1830e777
@ -70,6 +70,10 @@ def test_duration():
|
||||
feature_print_times = print_information.getFeaturePrintTimes()
|
||||
assert int(feature_print_times["Travel"]) == int(Duration(None))
|
||||
|
||||
# Ensure that all print times are zero-ed
|
||||
print_information.setToZeroPrintInformation()
|
||||
assert int(feature_print_times["Travel"]) == 0
|
||||
|
||||
# Fake a print duration message
|
||||
print_information._onPrintDurationMessage(0, {"Travel": 20}, [10])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user