Skip to content

Commit b212bcc

Browse files
committed
add test for resourceType
1 parent 4b5b1ec commit b212bcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dandischema/tests/test_datacite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from .utils import skipif_no_network
1313
from ..datacite import _get_datacite_schema, to_datacite
14-
from ..models import LicenseType, PublishedDandiset, RelationType, RoleType
14+
from ..models import LicenseType, PublishedDandiset, RelationType, RoleType, ResourceType
1515

1616

1717
def datacite_post(datacite: dict, doi: str) -> None:
@@ -337,6 +337,7 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
337337
{
338338
"identifier": "doi:10.123/123",
339339
"relation": RelationType("dcite:IsDocumentedBy"),
340+
"resourceType": ResourceType("dcite:JournalArticle"),
340341
},
341342
],
342343
},

0 commit comments

Comments
 (0)