diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-05-11 18:01:31 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-05-11 18:01:31 +0100 |
| commit | 61e88321b9e5dc67a0373edc69f8114db8c1d3b7 (patch) | |
| tree | 3f43fd006b6c095f91c2424086b273928881336c /tests/conversion_tests.py | |
| parent | 7e57058cf120717cc2d2fea3b897b12c3891b28a (diff) | |
Rename existing concept of style names to style IDs to match docx
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 5912a0e..edc8bb6 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -37,7 +37,7 @@ def empty_paragraphs_are_ignored(): @istest def paragraphs_are_converted_by_satisfying_matching_paths(): result = convert_document_element_to_html( - documents.paragraph(style_name="TipsParagraph", children=[ + documents.paragraph(style_id="TipsParagraph", children=[ _run_with_text("Tip") ]), style_map=[ @@ -50,7 +50,7 @@ def paragraphs_are_converted_by_satisfying_matching_paths(): @istest def default_paragraph_style_is_used_if_no_matching_style_is_found(): result = convert_document_element_to_html( - documents.paragraph(style_name="TipsParagraph", children=[ + documents.paragraph(style_id="TipsParagraph", children=[ _run_with_text("Tip") ]), ) @@ -60,7 +60,7 @@ def default_paragraph_style_is_used_if_no_matching_style_is_found(): @istest def default_paragraph_style_is_specified_by_mapping_plain_paragraphs(): result = convert_document_element_to_html( - documents.paragraph(style_name="TipsParagraph", children=[ + documents.paragraph(style_id="TipsParagraph", children=[ _run_with_text("Tip") ]), style_map=[ @@ -73,7 +73,7 @@ def default_paragraph_style_is_specified_by_mapping_plain_paragraphs(): @istest def warning_is_emitted_if_paragraph_style_is_unrecognised(): result = convert_document_element_to_html( - documents.paragraph(style_name="TipsParagraph", children=[ + documents.paragraph(style_id="TipsParagraph", children=[ _run_with_text("Tip") ]), ) @@ -133,7 +133,7 @@ def italic_runs_are_wrapped_in_emphasis_tags(): @istest def runs_are_converted_by_satisfying_matching_paths(): result = convert_document_element_to_html( - documents.run(style_name="TipsRun", children=[documents.Text("Tip")]), + documents.run(style_id="TipsRun", children=[documents.Text("Tip")]), style_map=[ style_reader.read_style("r.TipsRun => span.tip") ] |
