From 681f08b39378daadf82b3570359128b8f3e165df Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 24 Jun 2020 15:51:58 -0400 Subject: [PATCH] Test date_transform() Increase coverage --- tests/test_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index 0545861..d06bcb4 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -55,3 +55,11 @@ def test_write_lines(config): utils.write_lines(path, lines) assert os.path.exists(path) + + +def test_date_transform(config): + # Simple function transforming one-based hours (1->24) into zero-based hours (0->23) + date_str = "08:10" + new_date = utils.date_transform(date_str) + + assert new_date == "07:10"