From 72e5c9810f9ec8f88d62491f37a68abd9927e6fd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 21 Jan 2015 19:38:48 +0000 Subject: Operate over a more generic notion of note --- tests/conversion_tests.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/conversion_tests.py') diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py index 246671d..39c57cd 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -286,7 +286,7 @@ def can_define_custom_conversion_for_images(): @istest def footnote_reference_is_converted_to_superscript_intra_page_link(): - footnote_reference = documents.footnote_reference("4") + footnote_reference = documents.note_reference("footnote", "4") result = convert_document_element_to_html( footnote_reference, generate_uniquifier=lambda: 42 @@ -296,15 +296,15 @@ def footnote_reference_is_converted_to_superscript_intra_page_link(): @istest def footnotes_are_included_after_the_main_body(): - footnote_reference = documents.footnote_reference("4") + footnote_reference = documents.note_reference("footnote", "4") document = documents.document( [documents.paragraph([ _run_with_text("Knock knock"), documents.run([footnote_reference]) ])], - footnotes=documents.Footnotes({ - "4": documents.Footnote("4", [_paragraph_with_text("Who's there?")]) - }) + notes=documents.notes([ + documents.note("footnote", "4", [_paragraph_with_text("Who's there?")]) + ]) ) result = convert_document_element_to_html( document, -- cgit v1.2.3