mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07:00
Make the duration test first zero the times before sending print duration message.
This commit is contained in:
parent
198ea3c74f
commit
ee1830e777
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ def test_duration():
|
||||||
feature_print_times = print_information.getFeaturePrintTimes()
|
feature_print_times = print_information.getFeaturePrintTimes()
|
||||||
assert int(feature_print_times["Travel"]) == int(Duration(None))
|
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
|
# Fake a print duration message
|
||||||
print_information._onPrintDurationMessage(0, {"Travel": 20}, [10])
|
print_information._onPrintDurationMessage(0, {"Travel": 20}, [10])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue