-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into multilingual
- Loading branch information
Showing
8 changed files
with
338 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -880,7 +880,7 @@ def test_publisher_foaf(self): | |
|
||
p = RDFProfile(g) | ||
|
||
publisher = p._agent_details(URIRef('http://example.org'), DCT.publisher) | ||
publisher = p._agents_details(URIRef('http://example.org'), DCT.publisher)[0] | ||
|
||
assert publisher['uri'] == 'http://orgs.vocab.org/some-org' | ||
assert publisher['name'] == 'Publishing Organization for dataset 1' | ||
|
@@ -908,7 +908,7 @@ def test_publisher_ref(self): | |
|
||
p = RDFProfile(g) | ||
|
||
publisher = p._agent_details(URIRef('http://example.org'), DCT.publisher) | ||
publisher = p._agents_details(URIRef('http://example.org'), DCT.publisher)[0] | ||
|
||
assert publisher['uri'] == 'http://orgs.vocab.org/some-org' | ||
|
||
|
@@ -941,6 +941,8 @@ def test_contact_details(self): | |
|
||
contact = p._contact_details(URIRef('http://example.org'), ADMS.contactPoint) | ||
|
||
contact = contact[0] | ||
|
||
assert contact['name'] == 'Point of Contact' | ||
# mailto gets removed for storage and is added again on output | ||
assert contact['email'] == '[email protected]' | ||
|
Oops, something went wrong.