"""Tests for time formatter utils.""" import assets.utils.time_formatter as time_formatter def test_get_minutes_and_seconds_from_seconds() -> None: """Test that the proper amount of seconds is returned.""" minutes_and_seconds = time_formatter.get_minutes_and_seconds_from_seconds(62) assert minutes_and_seconds == {"minutes": 1, "seconds": 2} def test_get_minutes_and_seconds_from_seconds_over_an_hour() -> None: """Test that the proper amount of seconds is returned if the seconds is over an hour.""" minutes_and_seconds = time_formatter.get_minutes_and_seconds_from_seconds(3845) assert minutes_and_seconds == {"minutes": 64, "seconds": 5}