Skip to content
Snippets Groups Projects

Add more Person fields to the schema

Compare and
2 files
+ 53
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -179,6 +179,20 @@ _parameters1 = [
</entry>
""",
),
(
"author-two-names",
f"""\
<entry {XMLNS}>
<url>some url</url>
<codemeta:name>bar</codemeta:name>
<codemeta:author>
<codemeta:name>someone</codemeta:name>
<codemeta:name>an alias</codemeta:name>
</codemeta:author>
{PROVENANCE_XML}
</entry>
""",
),
(
"codemeta-affiliation",
f"""\
@@ -275,6 +289,18 @@ _parameters1 = [
<codemeta:name>University 2</codemeta:name>
</codemeta:affiliation>
</codemeta:contributor>
<codemeta:maintainer>
<codemeta:name>A Maintainer</codemeta:name>
<codemeta:affiliation>
<codemeta:name>University 3</codemeta:name>
</codemeta:affiliation>
</codemeta:maintainer>
<codemeta:copyrightHolder>
<codemeta:name>University 3</codemeta:name>
</codemeta:copyrightHolder>
<codemeta:creator>
<codemeta:name>A Maintainer</codemeta:name>
</codemeta:creator>
<codemeta:applicationCategory>something</codemeta:applicationCategory>
<codemeta:applicationSubCategory>something else</codemeta:applicationSubCategory>
<codemeta:installUrl>http://example.org/</codemeta:installUrl>
@@ -513,6 +539,28 @@ _parameters3 = [
},
],
),
(
"maintainer-with-no-name",
f"""\
<entry {XMLNS}>
<url>some url</url>
<codemeta:name>bar</codemeta:name>
<codemeta:author>
<codemeta:name>should allow anything here</codemeta:name>
</codemeta:author>
<codemeta:maintainer>
<schema:unknown-tag>abc</schema:unknown-tag>
</codemeta:maintainer>
{PROVENANCE_XML}
</entry>
""",
[
{
"summary": ".*Tag '?codemeta:name'? expected.*",
"fields": ["codemeta:maintainer"],
},
],
),
(
"id-is-not-url",
f"""\
Loading