Skip to content

Commit bf2b366

Browse files
author
Jason Ward
committed
refs #48: added a test showing that val=0 should not add the style
1 parent e385ae0 commit bf2b366

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pydocx/tests/test_xml.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class BoldTestCase(_TranslationTestCase):
1515
expected_output = """
1616
<p><strong>AAA</strong></p>
1717
<p>BBB</p>
18+
<p>CCC</p>
1819
"""
1920

2021
def get_xml(self):
@@ -35,6 +36,14 @@ def get_xml(self):
3536
),
3637
],
3738
),
39+
DXB.p_tag(
40+
[
41+
DXB.r_tag(
42+
[DXB.t_tag('CCC')],
43+
rpr=DXB.rpr_tag({'b': '0'}),
44+
),
45+
],
46+
),
3847
]
3948

4049
body = ''

0 commit comments

Comments
 (0)