Skip to content

Commit

Permalink
Update tests for millisecondToHumanstr
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyWong16 committed Aug 3, 2023
1 parent 0abf126 commit 382a4b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ def test_utils_download(plex, episode):

def test_millisecondToHumanstr():
res = utils.millisecondToHumanstr(1000)
assert res == "00:00:01.0000"
assert res == "00:00:01.000"
res = utils.millisecondToHumanstr(-1000)
assert res == "-00:00:01.000"
res = utils.millisecondToHumanstr(123456789)
assert res == "1 day, 10:17:36.789"
res = utils.millisecondToHumanstr(-123456789)
assert res == "-1 day, 10:17:36.789"


def test_toJson(movie):
Expand Down

0 comments on commit 382a4b7

Please sign in to comment.