Skip to content

Commit

Permalink
Add schemaKey to additionalMeta test data
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Jun 21, 2024
1 parent f248164 commit 17cea29
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dandischema/tests/test_datacite.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,17 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
{
"name": "A_last, A_first",
"roleName": [RoleType("dcite:ContactPerson")],
"schemaKey": "Person",
},
{
"name": "B_last, B_first",
"roleName": [RoleType("dcite:Author")],
"schemaKey": "Person",
},
{
"name": "C_last, C_first",
"schemaKey": "Person",
},
{"name": "C_last, C_first"},
],
},
{
Expand All @@ -219,10 +224,12 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
{
"name": "A_last, A_first",
"roleName": [RoleType("dcite:ContactPerson")],
"schemaKey": "Person",
},
{
"name": "B_last, B_first",
"roleName": [RoleType("dcite:Sponsor")],
"schemaKey": "Person",
},
],
},
Expand All @@ -238,11 +245,13 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
{
"name": "A_last, A_first",
"roleName": [RoleType("dcite:ContactPerson")],
"schemaKey": "Person",
},
{
"name": "B_last, B_first",
"identifier": "0000-0001-0000-0000",
"roleName": [RoleType("dcite:Sponsor")],
"schemaKey": "Organization",
},
],
},
Expand All @@ -265,11 +274,13 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
{
"name": "A_last, A_first",
"roleName": [RoleType("dcite:ContactPerson")],
"schemaKey": "Person",
},
{
"name": "B_last, B_first",
"identifier": "0000-0001-0000-0000",
"roleName": [RoleType("dcite:Funder")],
"schemaKey": "Organization",
},
],
},
Expand Down Expand Up @@ -298,10 +309,12 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
RoleType("dcite:Software"),
],
"identifier": "0000-0001-0000-0000",
"schemaKey": "Person",
},
{
"name": "B_last, B_first",
"roleName": [RoleType("dcite:ContactPerson")],
"schemaKey": "Person",
},
],
},
Expand Down

0 comments on commit 17cea29

Please sign in to comment.