From a000ac325f59272f84afe01c0397522c9cbbf986 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 30 Nov 2020 22:49:57 +0100 Subject: [PATCH] basic passing --- drafthorse/models/__init__.py | 2 +- tests/test_roundtrip.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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() -- 2.47.3