From 7c7d8eb3d2c6e75b3908cf759b4615865122e08d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 15 Oct 2023 15:40:36 +0100 Subject: Fix test and update pyproject file --- datamaps/tests/test_cleanser.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'datamaps/tests/test_cleanser.py') 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(): -- cgit v1.2.3