aboutsummaryrefslogtreecommitdiff
path: root/tests/mammoth_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-06-17 15:49:04 +0100
committerMichael Williamson <mike@zwobble.org>2015-06-17 15:49:04 +0100
commit3bfa77d64e69d20609c8321a067bfa2651a7eabc (patch)
tree4cab2b0ff450665c3b164a27292b18583c339059 /tests/mammoth_tests.py
parent6478f5c20b86534c471793041f4e5b46f0cd6484 (diff)
Add support for strikethrough
Diffstat (limited to 'tests/mammoth_tests.py')
-rw-r--r--tests/mammoth_tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py
index e7e7e64..84cb6ea 100644
--- a/tests/mammoth_tests.py
+++ b/tests/mammoth_tests.py
@@ -131,6 +131,13 @@ def underline_can_be_configured_with_style_mapping():
@istest
+def strikethrough_is_converted_to_s_element_by_default():
+ with open(test_path("strikethrough.docx"), "rb") as fileobj:
+ result = mammoth.convert_to_html(fileobj=fileobj)
+ assert_equal("<p><s>Today's Special: Salmon</s> Sold out</p>", result.value)
+
+
+@istest
def transform_document_is_applied_to_document_before_conversion():
def transform_document(document):
document.children[0].style_id = "Heading1"