Skip to content

Commit

Permalink
add test for resourceType
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Mar 16, 2024
1 parent 4b5b1ec commit b212bcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dandischema/tests/test_datacite.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from .utils import skipif_no_network
from ..datacite import _get_datacite_schema, to_datacite
from ..models import LicenseType, PublishedDandiset, RelationType, RoleType
from ..models import LicenseType, PublishedDandiset, RelationType, RoleType, ResourceType


def datacite_post(datacite: dict, doi: str) -> None:
Expand Down Expand Up @@ -337,6 +337,7 @@ def test_datacite(dandi_id: str, schema: Any) -> None:
{
"identifier": "doi:10.123/123",
"relation": RelationType("dcite:IsDocumentedBy"),
"resourceType": ResourceType("dcite:JournalArticle"),
},
],
},
Expand Down

0 comments on commit b212bcc

Please sign in to comment.