From: Raphael Michel Date: Mon, 30 Nov 2020 21:49:57 +0000 (+0100) Subject: basic passing X-Git-Tag: 2.2.0~1^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a000ac325f59272f84afe01c0397522c9cbbf986;p=thirdparty%2Fpython-drafthorse.git basic passing --- diff --git a/drafthorse/models/__init__.py b/drafthorse/models/__init__.py index b4ba96e..8898ae6 100644 --- a/drafthorse/models/__init__.py +++ b/drafthorse/models/__init__.py @@ -1,6 +1,6 @@ NS_RSM = "urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" NS_UDT = "urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" -NS_A = "urn:un:unece:uncefact:data:standard:UnqualifiedDataType:10" +NS_A = "urn:un:unece:uncefact:data:standard:QualifiedDataType:100" NS_RAM = "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" NS_QDT = "urn:un:unece:uncefact:data:standard:QualifiedDataType:10" BASIC = "BASIC" diff --git a/tests/test_roundtrip.py b/tests/test_roundtrip.py index 520882c..52d13dd 100644 --- a/tests/test_roundtrip.py +++ b/tests/test_roundtrip.py @@ -17,4 +17,6 @@ def test_sample_roundtrip(filename): schema = 'FACTUR-X_' + filename.split('_')[2] doc = Invoice.parse(origxml) generatedxml = prettify(doc.serialize(schema)) + generatedxml = b"\n".join(generatedxml.split(b"\n")[1:]) # skip first line (namespace order…) + origxml = b"\n".join(origxml.split(b"\n")[1:]) # skip first line (namespace order…) assert origxml.decode().strip() == generatedxml.decode().strip()