diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-15 15:40:36 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-15 15:40:36 +0100 |
commit | 7c7d8eb3d2c6e75b3908cf759b4615865122e08d (patch) | |
tree | a0f1dc35ca902f034cc25ca5ca6ffae47b42a82a /datamaps/tests | |
parent | 8977813ff3d3717180827f4dfcb88ea96e4b5389 (diff) |
Fix test and update pyproject file
Diffstat (limited to 'datamaps/tests')
-rw-r--r-- | datamaps/tests/test_cleanser.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/datamaps/tests/test_cleanser.py b/datamaps/tests/test_cleanser.py index 9d6df1a..344a9a3 100644 --- a/datamaps/tests/test_cleanser.py +++ b/datamaps/tests/test_cleanser.py @@ -5,25 +5,25 @@ from ..process.cleansers import Cleanser def test_cleaning_dot_date(): ds = "25.1.72" ds_double = "25.01.72" - four_year = "25.01.1972" + four_year = "25.01.2072" c = Cleanser(ds) c_double = Cleanser(ds_double) c_four = Cleanser(four_year) - assert c.clean() == datetime.date(1972, 1, 25) - assert c_double.clean() == datetime.date(1972, 1, 25) - assert c_four.clean() == datetime.date(1972, 1, 25) + assert c.clean() == datetime.date(2072, 1, 25) + assert c_double.clean() == datetime.date(2072, 1, 25) + assert c_four.clean() == datetime.date(2072, 1, 25) def test_cleaning_slash_date(): ds = "25/1/72" ds_double = "25/01/72" - four_year = "25/01/1972" + four_year = "25/01/2072" c = Cleanser(ds) c_double = Cleanser(ds_double) c_four = Cleanser(four_year) - assert c.clean() == datetime.date(1972, 1, 25) - assert c_double.clean() == datetime.date(1972, 1, 25) - assert c_four.clean() == datetime.date(1972, 1, 25) + assert c.clean() == datetime.date(2072, 1, 25) + assert c_double.clean() == datetime.date(2072, 1, 25) + assert c_four.clean() == datetime.date(2072, 1, 25) def test_em_dash_key(): |