diff --git a/setup.cfg b/setup.cfg index 2e1f9052c..6c57b8c56 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,7 @@ python_requires = >=3.7 zip_safe = False install_requires = arrow>=0.17.0 - babel-edtf>=1.1.0 + babel-edtf>=1.2.0 citeproc-py-styles>=0.1.2,<1.0.0 citeproc-py>=0.6.0 commonmeta-py>=0.8.4,<0.8.7 diff --git a/tests/services/schemas/test_publication_date.py b/tests/services/schemas/test_publication_date.py index d047123b8..521bc2241 100644 --- a/tests/services/schemas/test_publication_date.py +++ b/tests/services/schemas/test_publication_date.py @@ -62,6 +62,10 @@ def test_asymmetric_interval(app, minimal_record): _assert_meta(minimal_record["metadata"], "2020-01/2020-12-01") +def test_unknown_bound_interval(app, minimal_record): + _assert_meta(minimal_record["metadata"], "/2020-12") + _assert_meta(minimal_record["metadata"], "2020-12/") + + def test_invalid_interval(app, minimal_record): _assert_fails(minimal_record["metadata"], "2021-01/2020-12") - _assert_fails(minimal_record["metadata"], "/2020-12")