From: Raphael Michel Date: Wed, 3 Aug 2022 10:26:21 +0000 (+0200) Subject: Fix incorrect import in tests X-Git-Tag: 2.2.0~1^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dac4263900fa7edf36c3b03528407df518455661;p=thirdparty%2Fpython-drafthorse.git Fix incorrect import in tests --- diff --git a/tests/test_roundtrip.py b/tests/test_roundtrip.py index ca50105..fd53e50 100644 --- a/tests/test_roundtrip.py +++ b/tests/test_roundtrip.py @@ -5,7 +5,7 @@ from difflib import unified_diff import pytest import lxml.etree -from drafthorse.models.document import Invoice +from drafthorse.models.document import Document from drafthorse.utils import prettify, validate_xml samples = os.listdir(os.path.join(os.path.dirname(__file__), "samples")) @@ -31,7 +31,7 @@ def test_sample_roundtrip(filename): validate_xml(xmlout=origxml, schema=schema) # Parse the sample file into our internal python structure - doc = Invoice.parse(origxml) + doc = Document.parse(origxml) # Validate output XML and render a diff for debugging # skip first line (namespace order…)