From dc6e96be9801261c4ca3d9e90cf9dcb24b8666af Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 13 Sep 2015 15:29:07 +0100 Subject: Remove support for convert_underline --- tests/conversion_tests.py | 10 ---------- tests/mammoth_tests.py | 7 ------- 2 files changed, 17 deletions(-) (limited to 'tests') 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 @@ -189,15 +188,6 @@ def underline_runs_are_ignored_by_default(): assert_equal("Hello", result.value) -@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("Hello", result.value) - - @istest def underline_runs_can_be_mapped_using_style_mapping(): result = convert_document_element_to_html( 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 @@ -198,13 +198,6 @@ def underline_is_ignored_by_default(): assert_equal('

The Sunset Tree

', result.value) -@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('

The Sunset Tree

', result.value) - - @istest def underline_can_be_configured_with_style_mapping(): with open(test_path("underline.docx"), "rb") as fileobj: -- cgit v1.2.3