Skip to content

Commit

Permalink
test: fix publication_date tests, createdDate is the item property
Browse files Browse the repository at this point in the history
  • Loading branch information
phette23 committed Jun 26, 2024
1 parent 8d18e61 commit 44e48e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrate/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def test_addl_titles(input, expect):
( # item with dateCreated but nothing in MODS XML
{
"metadata": "<xml><mods></mods></xml>",
"dateCreated": "2019-04-25T16:22:52.704-07:00",
"createdDate": "2019-04-25T16:22:52.704-07:00",
},
"2019-04-25",
),
Expand All @@ -495,7 +495,7 @@ def test_addl_titles(input, expect):
( # empty dateCreated element
{
"metadata": "<xml><mods><origininfo><dateCreatedWrapper><dateCreated></dateCreated></dateCreatedWrapper></origininfo></mods></xml>",
"dateCreated": "2023-11-15T12:22:52.704-07:00",
"createdDate": "2023-11-15T12:22:52.704-07:00",
},
"2023-11-15",
),
Expand All @@ -508,7 +508,7 @@ def test_addl_titles(input, expect):
( # empty date range should default to item.dateCreated
{
"metadata": "<xml><mods><origininfo><dateCreatedWrapper><dateCreated></dateCreated><pointStart></pointStart><pointEnd></pointEnd></dateCreatedWrapper></origininfo></mods></xml>",
"dateCreated": "2016-11-15T14:42:52.804-07:00",
"createdDate": "2016-11-15T14:42:52.804-07:00",
},
"2016-11-15",
),
Expand Down

0 comments on commit 44e48e1

Please sign in to comment.