From ee1830e77780c563a30e81787ea1feeb66065434 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 22 Feb 2019 11:33:23 +0100 Subject: [PATCH] Make the duration test first zero the times before sending print duration message. --- tests/TestPrintInformation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/TestPrintInformation.py b/tests/TestPrintInformation.py index 7bfe4af702..b14fd20f28 100644 --- a/tests/TestPrintInformation.py +++ b/tests/TestPrintInformation.py @@ -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])