add more test cases to test_get_date_object

This commit is contained in:
Sina Atalay 2024-02-08 20:12:47 +01:00
parent 1aeebcaa04
commit 246213aaf2
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ from rendercv import data_models as dm
(2020, Date(2020, 1, 1), None), (2020, Date(2020, 1, 1), None),
("present", Date(2024, 1, 1), None), ("present", Date(2024, 1, 1), None),
("invalid", None, ValueError), ("invalid", None, ValueError),
("20222", None, ValueError),
("202222-20200", None, ValueError),
("202222-12-20", None, ValueError),
("2022-20-20", None, ValueError),
], ],
) )
@time_machine.travel("2024-01-01") @time_machine.travel("2024-01-01")