From 246213aaf25dd405877840f6ff66500bf95a3526 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 8 Feb 2024 20:12:47 +0100 Subject: [PATCH] add more test cases to test_get_date_object --- tests/test_data_models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_data_models.py b/tests/test_data_models.py index 53f498c..f7fa432 100644 --- a/tests/test_data_models.py +++ b/tests/test_data_models.py @@ -17,6 +17,10 @@ from rendercv import data_models as dm (2020, Date(2020, 1, 1), None), ("present", Date(2024, 1, 1), None), ("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")