aboutsummaryrefslogtreecommitdiff
path: root/tests/conversion_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conversion_tests.py')
-rw-r--r--tests/conversion_tests.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py
index 287d844..0b5421b 100644
--- a/tests/conversion_tests.py
+++ b/tests/conversion_tests.py
@@ -426,6 +426,25 @@ def footnotes_are_included_after_the_main_body():
assert_equal(expected_html, result.value)
+@istest
+def comments_are_ignored_by_default():
+ reference = documents.comment_reference("4")
+ comment = documents.comment(
+ comment_id="4",
+ body=[_paragraph_with_text("Who's there?")],
+ )
+ document = documents.document(
+ [documents.paragraph([
+ _run_with_text("Knock knock"),
+ documents.run([reference])
+ ])],
+ comments=[comment],
+ )
+ result = convert_document_element_to_html(document, id_prefix="doc-42-")
+ expected_html = '<p>Knock knock</p>'
+ assert_equal(expected_html, result.value)
+
+
def _paragraph_with_text(text):
return documents.paragraph(children=[_run_with_text(text)])