@@ -90,7 +90,7 @@ def it_can_remove_its_content_while_preserving_formatting(
90
90
])
91
91
def add_run_fixture (self , request ):
92
92
before_cxml , text , style , after_cxml = request .param
93
- paragraph = Paragraph (element (before_cxml ))
93
+ paragraph = Paragraph (element (before_cxml ), None )
94
94
expected_xml = xml (after_cxml )
95
95
return paragraph , text , style , expected_xml
96
96
@@ -100,7 +100,7 @@ def add_run_fixture(self, request):
100
100
])
101
101
def alignment_get_fixture (self , request ):
102
102
cxml , expected_alignment_value = request .param
103
- paragraph = Paragraph (element (cxml ))
103
+ paragraph = Paragraph (element (cxml ), None )
104
104
return paragraph , expected_alignment_value
105
105
106
106
@pytest .fixture (params = [
@@ -114,7 +114,7 @@ def alignment_get_fixture(self, request):
114
114
])
115
115
def alignment_set_fixture (self , request ):
116
116
initial_cxml , new_alignment_value , expected_cxml = request .param
117
- paragraph = Paragraph (element (initial_cxml ))
117
+ paragraph = Paragraph (element (initial_cxml ), None )
118
118
expected_xml = xml (expected_cxml )
119
119
return paragraph , new_alignment_value , expected_xml
120
120
@@ -126,7 +126,7 @@ def alignment_set_fixture(self, request):
126
126
])
127
127
def clear_fixture (self , request ):
128
128
initial_cxml , expected_cxml = request .param
129
- paragraph = Paragraph (element (initial_cxml ))
129
+ paragraph = Paragraph (element (initial_cxml ), None )
130
130
expected_xml = xml (expected_cxml )
131
131
return paragraph , expected_xml
132
132
@@ -137,13 +137,13 @@ def clear_fixture(self, request):
137
137
def insert_before_fixture (self , request ):
138
138
body_cxml , text , style , expected_cxml = request .param
139
139
body = element (body_cxml )
140
- paragraph = Paragraph (body .find (qn ('w:p' )))
140
+ paragraph = Paragraph (body .find (qn ('w:p' )), None )
141
141
expected_xml = xml (expected_cxml )
142
142
return paragraph , text , style , body , expected_xml
143
143
144
144
@pytest .fixture
145
145
def runs_fixture (self , p_ , Run_ , r_ , r_2_ , runs_ ):
146
- paragraph = Paragraph (p_ )
146
+ paragraph = Paragraph (p_ , None )
147
147
run_ , run_2_ = runs_
148
148
return paragraph , Run_ , r_ , r_2_ , run_ , run_2_
149
149
@@ -154,7 +154,7 @@ def runs_fixture(self, p_, Run_, r_, r_2_, runs_):
154
154
])
155
155
def style_get_fixture (self , request ):
156
156
p_cxml , expected_style = request .param
157
- paragraph = Paragraph (element (p_cxml ))
157
+ paragraph = Paragraph (element (p_cxml ), None )
158
158
return paragraph , expected_style
159
159
160
160
@pytest .fixture (params = [
@@ -171,7 +171,7 @@ def style_get_fixture(self, request):
171
171
])
172
172
def style_set_fixture (self , request ):
173
173
p_cxml , new_style_value , expected_cxml = request .param
174
- paragraph = Paragraph (element (p_cxml ))
174
+ paragraph = Paragraph (element (p_cxml ), None )
175
175
expected_xml = xml (expected_cxml )
176
176
return paragraph , new_style_value , expected_xml
177
177
@@ -188,12 +188,12 @@ def style_set_fixture(self, request):
188
188
])
189
189
def text_get_fixture (self , request ):
190
190
p_cxml , expected_text_value = request .param
191
- paragraph = Paragraph (element (p_cxml ))
191
+ paragraph = Paragraph (element (p_cxml ), None )
192
192
return paragraph , expected_text_value
193
193
194
194
@pytest .fixture
195
195
def text_set_fixture (self ):
196
- paragraph = Paragraph (element ('w:p' ))
196
+ paragraph = Paragraph (element ('w:p' ), None )
197
197
paragraph .add_run ('must not appear in result' )
198
198
new_text_value = 'foo\t bar\r baz\n '
199
199
expected_text_value = 'foo\t bar\n baz\n '
0 commit comments