forked from dr-leo/pandaSDMX
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from khaeru/fix/xml-contact
Fix read/write of common.Contact
- Loading branch information
Showing
5 changed files
with
50 additions
and
9 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 |
---|---|---|
|
@@ -50,7 +50,11 @@ def dks(dsd): | |
|
||
def test_contact() -> None: | ||
c = m.Contact( | ||
name="John Smith", org_unit="Human Resources", telephone="+1234567890" | ||
name="John Smith", | ||
org_unit="Human Resources", | ||
telephone="+1234567890", | ||
uri=["https://example.org"], | ||
email=["[email protected]"], | ||
) | ||
|
||
result = sdmx.to_xml(c, pretty_print=True) | ||
|
@@ -60,6 +64,8 @@ def test_contact() -> None: | |
<com:Name xml:lang="en">John Smith</com:Name> | ||
<str:Department xml:lang="en">Human Resources</str:Department> | ||
<str:Telephone>+1234567890</str:Telephone> | ||
<str:URI>https://example.org</str:URI> | ||
<str:Email>[email protected]</str:Email> | ||
</str:Contact> | ||
""" | ||
) | ||
|
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