diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-21 19:38:48 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-21 19:38:48 +0000 |
| commit | 72e5c9810f9ec8f88d62491f37a68abd9927e6fd (patch) | |
| tree | c814868592a084917b8c1e820ba03e9943e59b71 /tests/conversion_tests.py | |
| parent | e3884f135f15a506fd33338c4f127dd706936679 (diff) | |
Operate over a more generic notion of note
Diffstat (limited to 'tests/conversion_tests.py')
| -rw-r--r-- | tests/conversion_tests.py | 10 |
1 files changed, 5 insertions, 5 deletions
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, |
