aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/document_xml_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-07-04 13:29:23 +0100
committerMichael Williamson <mike@zwobble.org>2015-07-04 13:29:23 +0100
commit044398430b84b73fa6fce57405254f4a63c42424 (patch)
tree61812a72d68dcbb7cd09f921b9088c2d41299342 /tests/docx/document_xml_tests.py
parent8fa1fcd70c807dfae3de83e52c273857e6a9db50 (diff)
Split out body reader construction
Diffstat (limited to 'tests/docx/document_xml_tests.py')
-rw-r--r--tests/docx/document_xml_tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/docx/document_xml_tests.py b/tests/docx/document_xml_tests.py
index 00c7770..b09f481 100644
--- a/tests/docx/document_xml_tests.py
+++ b/tests/docx/document_xml_tests.py
@@ -4,6 +4,7 @@ from mammoth import documents
from mammoth.docx.xmlparser import element as xml_element, text as xml_text
from mammoth.docx.document_xml import read_document_xml_element
from mammoth.docx.notes_xml import NoteElement
+from mammoth.docx import body_xml
@istest
@@ -31,7 +32,8 @@ class ReadXmlElementTests(object):
def _read_and_get_document_xml_element(*args, **kwargs):
- result = read_document_xml_element(*args, **kwargs)
+ body_reader = body_xml.reader()
+ result = read_document_xml_element(*args, body_reader=body_reader, **kwargs)
assert_equal([], result.messages)
return result.value