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 | |
parent | 8977813ff3d3717180827f4dfcb88ea96e4b5389 (diff) |
Fix test and update pyproject file
-rw-r--r-- | datamaps/tests/test_cleanser.py | 16 | ||||
-rw-r--r-- | pyproject.toml | 4 |
2 files changed, 10 insertions, 10 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(): diff --git a/pyproject.toml b/pyproject.toml index 34e4e11..34b6be8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,13 +9,13 @@ datamaps = 'datamaps.main:cli' name = "datamaps" version = "1.1.9" authors = [ - { name="Matthew Lemon", email="matt@matthewlemon.com" }, + { name="Matthew Lemon", email="y@yulqen.org" }, ] description='Collect and clean data using Excel spreadsheets.' dependencies = [ 'click', 'python-dateutil', - 'bcompiler-engine>=1.1.5' + 'bcompiler-engine>=1.1.7' ] readme = "README.md" requires-python = ">=3.7" |