]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commitdiff
basic passing
authorRaphael Michel <mail@raphaelmichel.de>
Mon, 30 Nov 2020 21:49:57 +0000 (22:49 +0100)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 30 Nov 2020 21:49:57 +0000 (22:49 +0100)
drafthorse/models/__init__.py
tests/test_roundtrip.py

index b4ba96e28776bdc9319bf917f700383ee6721921..8898ae645be4edb7655246fd8b556d1fe01d5353 100644 (file)
@@ -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"
index 520882c34d264ae66a0baeb42c78309b1834db98..52d13dd758dabb9f62bdeda44c45d9881d24e5cf 100644 (file)
@@ -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()