From 346c0d6fecf109f207df34175e1fa9e4d7ef8902 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Thu, 25 Jul 2024 09:50:57 -0400 Subject: [PATCH] add comment to negative time test --- tests/io/test_slurm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/io/test_slurm.py b/tests/io/test_slurm.py index 1556822..f3ffe00 100644 --- a/tests/io/test_slurm.py +++ b/tests/io/test_slurm.py @@ -196,6 +196,8 @@ def test_convert_time_to_str(self, slurm_io): assert time_str == "0-0:10:2" # test negative + # negative time makes no sense and should not be passed. this test is just to be alerted + # if the output for negative numbers changes time_str = slurm_io._convert_time_to_str(-10) assert time_str == "-1-23:59:50"