We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6935e7 commit 1520e4dCopy full SHA for 1520e4d
pydocx/fixtures/missing_style.docx
2.58 KB
pydocx/tests/test_docx.py
@@ -722,6 +722,19 @@ def test_justification():
722
''')
723
724
725
+def test_missing_style():
726
+ file_path = path.join(
727
+ path.abspath(path.dirname(__file__)),
728
+ '..',
729
+ 'fixtures',
730
+ 'missing_style.docx',
731
+ )
732
+ actual_html = convert(file_path)
733
+ assert_html_equal(actual_html, BASE_HTML % '''
734
+ <p>AAA</p>
735
+ ''')
736
+
737
738
def _converter(*args, **kwargs):
739
# Having a converter that does nothing is the same as if abiword fails to
740
# convert.
0 commit comments