Skip to content

Commit d4d9ca8

Browse files
author
Michael Fritzsche
committed
made test for process step more complex
1 parent f21df49 commit d4d9ca8

1 file changed

Lines changed: 25 additions & 12 deletions

File tree

test/hermes_test/model/test_api_e2e.py

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,18 @@ def test_invenio_deposit(tmp_path, monkeypatch, sandbox_auth, metadata, invenio_
511511
"cff": SoftwareMetadata({
512512
"@type": ["http://schema.org/SoftwareSourceCode"],
513513
"http://schema.org/name": [{"@value": "Test"}],
514-
"http://schema.org/author": [{
515-
"@type": "http://schema.org/Person",
516-
"http://schema.org/familyName": [{"@value": "Test"}],
517-
"http://schema.org/givenName": [{"@value": "Testi"}],
518-
"http://schema.org/email": [{"@value": "test.testi@testis.tests"}]
519-
}],
514+
"http://schema.org/author": [
515+
{
516+
"@type": "http://schema.org/Person",
517+
"http://schema.org/familyName": [{"@value": "Test"}],
518+
"http://schema.org/email": [{"@value": "test.testi@testis.tests"}]
519+
},
520+
{
521+
"@type": "http://schema.org/Person",
522+
"http://schema.org/familyName": [{"@value": "Tester"}],
523+
"http://schema.org/email": [{"@value": "test@tester.tests"}]
524+
}
525+
],
520526
"http://schema.org/license": [{"@id": "https://spdx.org/licenses/Apache-2.0"}]
521527
}),
522528
"codemeta": SoftwareMetadata({
@@ -535,12 +541,19 @@ def test_invenio_deposit(tmp_path, monkeypatch, sandbox_auth, metadata, invenio_
535541
"@type": ["http://schema.org/SoftwareSourceCode"],
536542
"http://schema.org/description": [{"@value": "for testing"}],
537543
"http://schema.org/name": [{"@value": "Test"}],
538-
"http://schema.org/author": [{
539-
"@type": "http://schema.org/Person",
540-
"http://schema.org/familyName": [{"@value": "Test"}],
541-
"http://schema.org/givenName": [{"@value": "Testi"}],
542-
"http://schema.org/email": [{"@value": "test.testi@testis.tests"}]
543-
}],
544+
"http://schema.org/author": [
545+
{
546+
"@type": "http://schema.org/Person",
547+
"http://schema.org/familyName": [{"@value": "Test"}],
548+
"http://schema.org/givenName": [{"@value": "Testi"}],
549+
"http://schema.org/email": [{"@value": "test.testi@testis.tests"}]
550+
},
551+
{
552+
"@type": "http://schema.org/Person",
553+
"http://schema.org/familyName": [{"@value": "Tester"}],
554+
"http://schema.org/email": [{"@value": "test@tester.tests"}]
555+
}
556+
],
544557
"http://schema.org/license": [{"@id": "https://spdx.org/licenses/Apache-2.0"}]
545558
})
546559
)

0 commit comments

Comments
 (0)