From 3a363314e6149361b16959d4e3c2ebb6cd97ab1f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Jul 2015 13:52:28 +0100 Subject: Handle relationships in notes --- tests/mammoth_tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index 9f37db0..2c7262c 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -102,6 +102,18 @@ def endnotes_are_appended_to_text(): assert_equal(expected_html, result.value) +@istest +def relationships_are_handled_properly_in_footnotes(): + expected_html = ( + '

[1]

' + + '
  1. Example ↑

') + + with open(test_path("footnote-hyperlink.docx"), "rb") as fileobj: + result = mammoth.convert_to_html(fileobj=fileobj, id_prefix="doc-42") + assert_equal([], result.messages) + assert_equal(expected_html, result.value) + + @istest def text_boxes_are_read(): with open(test_path("text-box.docx"), "rb") as fileobj: -- cgit v1.2.3