From 61cf58387f239633bf1b81f4e8252459152d2598 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 20 Jul 2015 18:57:46 +0100 Subject: Support linked images --- tests/mammoth_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index 2c7262c..88aa445 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -47,6 +47,14 @@ def inline_images_are_included_in_output(): result = mammoth.convert_to_html(fileobj=fileobj) assert_equal("""

""", result.value) assert_equal([], result.messages) + + +@istest +def images_stored_outside_of_document_are_included_in_output(): + with open(test_path("external-picture.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj) + assert_equal("""

""", result.value) + assert_equal([], result.messages) @istest -- cgit v1.2.3