@@ -150,6 +150,10 @@ def it_can_change_its_unhide_when_used_value(self, unhide_set_fixture):
150150 style .unhide_when_used = value
151151 assert style ._element .xml == expected_xml
152152
153+ def it_knows_its_quick_style_setting (self , quick_get_fixture ):
154+ style , expected_value = quick_get_fixture
155+ assert style .quick_style == expected_value
156+
153157 def it_can_delete_itself_from_the_document (self , delete_fixture ):
154158 style , styles , expected_xml = delete_fixture
155159 style .delete ()
@@ -265,6 +269,17 @@ def priority_set_fixture(self, request):
265269 expected_xml = xml (expected_cxml )
266270 return style , value , expected_xml
267271
272+ @pytest .fixture (params = [
273+ ('w:style' , False ),
274+ ('w:style/w:qFormat' , True ),
275+ ('w:style/w:qFormat{w:val=0}' , False ),
276+ ('w:style/w:qFormat{w:val=on}' , True ),
277+ ])
278+ def quick_get_fixture (self , request ):
279+ style_cxml , expected_value = request .param
280+ style = BaseStyle (element (style_cxml ))
281+ return style , expected_value
282+
268283 @pytest .fixture (params = [
269284 ('w:style' , WD_STYLE_TYPE .PARAGRAPH ),
270285 ('w:style{w:type=paragraph}' , WD_STYLE_TYPE .PARAGRAPH ),
0 commit comments