From dc419cfb2808005f5b2d0ba4631ebbfc0fe98268 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 15 Jun 2015 15:09:09 +0100 Subject: Add text box support --- tests/mammoth_tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index d9f1093..18f7b48 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -102,6 +102,13 @@ def endnotes_are_appended_to_text(): assert_equal(expected_html, result.value) +@istest +def text_boxes_are_read(): + with open(test_path("text-box.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj) + assert_equal('

Datum plane

', result.value) + + @istest def transform_document_is_applied_to_document_before_conversion(): def transform_document(document): -- cgit v1.2.3