Skip to content

Commit

Permalink
fix:make cff example correct
Browse files Browse the repository at this point in the history
  • Loading branch information
rmfranken committed Dec 16, 2024
1 parent 0eb1423 commit 43fdf51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,15 @@ def test_broken_cff(cff_file):
def test_parse_doi():
cff_file = b"""
cff-version: 1.2.0
title: gimie
doi: 10.5281/zenodo.1234567
message: If you use this software, please cite it using these metadata.
title: 'napari: a multi-dimensional image viewer for Python'
identifiers:
- type: doi
value: 10.5281/zenodo.3555620
"""
obj = next(
CffParser(subject=URIRef("https://example.org/"))
.parse(data=cff_file)
.objects()
)
assert URIRef("https://doi.org/10.5281/zenodo.1234567") == obj
assert URIRef("https://doi.org/10.5281/zenodo.3555620") == obj

0 comments on commit 43fdf51

Please sign in to comment.