From 87ccbd84b4efb83259747624e870f58131400ba3 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 17 May 2024 15:29:44 +0300 Subject: [PATCH] tests: add more date tests --- tests/test_data_models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_data_models.py b/tests/test_data_models.py index d4c0f96..f373d14 100644 --- a/tests/test_data_models.py +++ b/tests/test_data_models.py @@ -206,6 +206,14 @@ def test_if_the_schema_is_the_latest(root_directory_path): "2020 to 2021", "1 year 1 month", ), + ( + Date(2020, 1, 1), + Date(2021, 1, 1), + None, + "Jan. 2020 to Jan. 2021", + "2020 to 2021", + "1 year 1 month", + ), ( "2020-01", "2021-01", @@ -293,6 +301,7 @@ def test_if_the_schema_is_the_latest(root_directory_path): ), (None, None, "2020-01-01", "Jan. 2020", "2020", ""), (None, None, "2020-01-01", "Jan. 2020", "2020", ""), + (None, None, Date(2020, 1, 1), "Jan. 2020", "2020", ""), (None, None, None, "", "", ""), (None, "2020-01-01", None, "Jan. 2020", "2020", ""), (None, "present", None, "Jan. 2024", "2024", ""),