Skip to content

Commit ed602a1

Browse files
author
Jason Ward
committed
refs #24: test cleanup
1 parent 2788acd commit ed602a1

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

pydocx/tests/test_docx.py

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -748,17 +748,32 @@ def test_justification():
748748
)
749749
actual_html = convert(file_path)
750750
assert_html_equal(actual_html, '''
751-
<html><body><p><div class='center'>Center Justified</div>
752-
</p><p><div class='right'>Right justified</div></p>
753-
<p><div class='right' style='margin-right:96.0px;'>
754-
Right justified and pushed in from right</div></p>
755-
<p><div class='center' style='margin-left:252.0px;margin-right:96.0px;'>
756-
Center justified and pushed in from left and it is
757-
great and it is the coolest thing of all time and I like it and
758-
I think it is cool</div></p><p>
759-
<div style='margin-left:252.0px;margin-right:96.0px;'>
760-
Left justified and pushed in from left</div></p></body></html>
761-
''')
751+
<html><body>
752+
<p>
753+
<div class='center'>Center Justified</div>
754+
</p>
755+
<p>
756+
<div class='right'>Right justified</div>
757+
</p>
758+
<p>
759+
<div class='right' style='margin-right:96.0px;'>
760+
Right justified and pushed in from right
761+
</div>
762+
</p>
763+
<p>
764+
<div class='center' style='margin-left:252.0px;margin-right:96.0px;'>
765+
Center justified and pushed in from left and it is
766+
great and it is the coolest thing of all time and I like it and
767+
I think it is cool
768+
</div>
769+
</p>
770+
<p>
771+
<div style='margin-left:252.0px;margin-right:96.0px;'>
772+
Left justified and pushed in from left
773+
</div>
774+
</p>
775+
</body></html>
776+
''')
762777

763778

764779
def _converter(*args, **kwargs):

0 commit comments

Comments
 (0)