aboutsummaryrefslogtreecommitdiff
path: root/tests/conversion_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-24 22:13:00 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-24 22:15:35 +0000
commitc8516d0a4e9467d4313af4ba63196bca184812b3 (patch)
treedd6235081faf3e3fba7ddda3535d6c48654fb781 /tests/conversion_tests.py
parent507700470b46329ea8b1f8191e48fa69a24a8deb (diff)
Use recursive descent parser instead of parsimonious
Diffstat (limited to 'tests/conversion_tests.py')
-rw-r--r--tests/conversion_tests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py
index e91d4ed..0d08b20 100644
--- a/tests/conversion_tests.py
+++ b/tests/conversion_tests.py
@@ -6,9 +6,10 @@ import io
from nose.tools import istest, assert_equal
-from mammoth import documents, style_reader, results, html
+from mammoth import documents, results, html
from mammoth.conversion import convert_document_element_to_html, _comment_author_label
from mammoth.docx.xmlparser import parse_xml
+from mammoth.styles.parser import read_style_mapping
@istest
@@ -502,6 +503,6 @@ def _run_with_text(text):
def _style_mapping(text):
- result = style_reader.read_style(text)
+ result = read_style_mapping(text)
assert_equal([], result.messages)
return result.value