aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-09-13 15:29:07 +0100
committerMichael Williamson <mike@zwobble.org>2016-03-28 13:29:03 +0100
commitdc6e96be9801261c4ca3d9e90cf9dcb24b8666af (patch)
tree0d686e43555908177719df24e66528ad24928538 /tests
parentecb539ddcd92e93572fd2cdf6c454e504a5a92ec (diff)
Remove support for convert_underline
Diffstat (limited to 'tests')
-rw-r--r--tests/conversion_tests.py10
-rw-r--r--tests/mammoth_tests.py7
2 files changed, 0 insertions, 17 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py
index cb6f961..cc7f97b 100644
--- a/tests/conversion_tests.py
+++ b/tests/conversion_tests.py
@@ -6,7 +6,6 @@ import io
from nose.tools import istest, assert_equal
-import mammoth
from mammoth import documents, style_reader, results, html
from mammoth.conversion import convert_document_element_to_html
from mammoth.docx.xmlparser import parse_xml
@@ -190,15 +189,6 @@ def underline_runs_are_ignored_by_default():
@istest
-def underline_runs_can_be_wrapped_in_tags_using_convert_underline_argument():
- result = convert_document_element_to_html(
- documents.run(children=[documents.text("Hello")], is_underline=True),
- convert_underline=mammoth.underline.element("u")
- )
- assert_equal("<u>Hello</u>", result.value)
-
-
-@istest
def underline_runs_can_be_mapped_using_style_mapping():
result = convert_document_element_to_html(
documents.run(children=[documents.text("Hello")], is_underline=True),
diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py
index 677a97b..1b97a1a 100644
--- a/tests/mammoth_tests.py
+++ b/tests/mammoth_tests.py
@@ -199,13 +199,6 @@ def underline_is_ignored_by_default():
@istest
-def underline_can_be_configured_with_convert_underline_option():
- with open(test_path("underline.docx"), "rb") as fileobj:
- result = mammoth.convert_to_html(fileobj=fileobj, convert_underline=mammoth.underline.element("em"))
- assert_equal('<p><strong>The <em>Sunset</em> Tree</strong></p>', result.value)
-
-
-@istest
def underline_can_be_configured_with_style_mapping():
with open(test_path("underline.docx"), "rb") as fileobj:
result = mammoth.convert_to_html(fileobj=fileobj, style_map="u => em")