mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:39:18 +00:00
remove comments
This commit is contained in:
@@ -20,7 +20,7 @@ def test_randomizor_with_positive_length():
|
|||||||
|
|
||||||
def test_date_parser_with_int():
|
def test_date_parser_with_int():
|
||||||
"""unix timestamp"""
|
"""unix timestamp"""
|
||||||
timestamp = 1621539600 # May 21, 2021
|
timestamp = 1621539600
|
||||||
expected_date = "2021-05-20"
|
expected_date = "2021-05-20"
|
||||||
assert date_parser(timestamp) == expected_date
|
assert date_parser(timestamp) == expected_date
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ def test_date_parser_with_invalid_input():
|
|||||||
|
|
||||||
def test_date_parser_with_invalid_string_format():
|
def test_date_parser_with_invalid_string_format():
|
||||||
"""invalid date string"""
|
"""invalid date string"""
|
||||||
invalid_date_str = "21/05/2021" # Invalid format
|
invalid_date_str = "21/05/2021"
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
date_parser(invalid_date_str)
|
date_parser(invalid_date_str)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user