mirror of
https://github.com/louisleroy5/trnslator.git
synced 2024-12-22 23:55:56 -05:00
Test date_transform()
Increase coverage
This commit is contained in:
parent
aeb4dc9713
commit
681f08b393
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user