Skip to content
Snippets Groups Projects

codemeta: Workaround pyld issue for compact operation

2 files
+ 33
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -299,6 +299,32 @@ def test_invalid_date():
)
def test_context_contains_schema_org():
assert codemeta_to_bibtex(
{
"@context": [
"https://doi.org/10.5063/schema/codemeta-2.0",
"http://schema.org",
],
"author": {"name": "Jane Doe"},
"name": "Example Software",
"url": "http://example.org/",
"datePublished": "2023-10-10",
"license": "https://spdx.org/licenses/Apache-2.0",
}
) == textwrap.dedent(
"""\
@software{REPLACEME,
author = "Doe, Jane",
license = "Apache-2.0",
date = "2023-10-10",
title = "Example Software",
url = "http://example.org/"
}
"""
)
def test_cff_empty():
assert cff_to_bibtex("") == textwrap.dedent(
"""\
Loading