Skip to content

Commit

Permalink
fixed tests after edtf 5.0.0 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Nov 8, 2024
1 parent 56a7335 commit 8c661ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test-date_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@ def test_validate_edtf():
assert None is validate_edtf("2012-01-01T00:00:00+00:00")
assert "2012-01-01T09:12:45+06:00" == validate_edtf("2012-01-01T09:12:45+06:00")
# edtf 4.0.1 has a bug and can't handle T23. Fixed in 5.0.0
assert None is validate_edtf("2024-07-22T23:11:00Z")
assert "2024-07-22T23:11:00Z" == validate_edtf("2024-07-22T23:11:00Z")
assert "2024-10-23T13:58:21" == validate_edtf("2024-10-23T13:58:21")
assert "2012-01-01" == validate_edtf("2012-01-01")
2 changes: 1 addition & 1 deletion tests/test-inveniordm_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def test_from_json_feed_dates():
assert py_.get(inveniordm, "pids.doi.identifier") == "10.59350/k9zxj-pek64"
assert py_.get(inveniordm, "metadata.resource_type.id") == "publication-preprint"
assert py_.get(inveniordm, "metadata.publication_date") == "2018-08-28"
assert py_.get(inveniordm, "metadata.dates") is None
assert py_.get(inveniordm, "metadata.dates") == [{'date': '2018-10-19T23:13:05', 'type': {'id': 'updated'}}]
assert py_.get(inveniordm, "custom_fields.rs:content_text").startswith(
"I was lucky enough to have Phil Mannion as one of the peer-reviewers"
)
Expand Down

0 comments on commit 8c661ff

Please sign in to comment.