diff options
Diffstat (limited to 'iss/tests/test_utils.py')
| -rw-r--r-- | iss/tests/test_utils.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/iss/tests/test_utils.py b/iss/tests/test_utils.py index 4c67322..ee4971f 100644 --- a/iss/tests/test_utils.py +++ b/iss/tests/test_utils.py @@ -1,4 +1,17 @@ -from ..utils import deg_to_cardinal +from ..utils import deg_to_cardinal, seconds_to_minutes + + +def test_seconds_to_minutes(): + cases = [ + (0, "0:00"), + (1, "0:01"), + (60, "1:00"), + (61, "1:01"), + (1439, "23:59"), + (1440, "24:00"), + ] + for secs, s in cases: + assert seconds_to_minutes(secs) == s def test_deg_to_cardinal(): |
