MCPcopy Index your code
hub / github.com/python-openxml/python-docx / rPr_bldr

Method rPr_bldr

tests/oxml/test_xmlchemy.py:105–116  ·  view source on GitHub ↗
(self, children)

Source from the content-addressed store, hash-verified

103 return [("w:%s" % letter) for letter in letters]
104
105 def rPr_bldr(self, children):
106 rPr_bldr = an_rPr().with_nsdecls()
107 for char in children:
108 if char == "b":
109 rPr_bldr.with_child(a_b())
110 elif char == "i":
111 rPr_bldr.with_child(an_i())
112 elif char == "u":
113 rPr_bldr.with_child(a_u())
114 else:
115 raise NotImplementedError("got '%s'" % char)
116 return rPr_bldr
117
118
119class DescribeSerializeForReading:

Callers 3

first_fixtureMethod · 0.95
insert_fixtureMethod · 0.95
remove_fixtureMethod · 0.95

Calls 6

an_rPrFunction · 0.85
a_bFunction · 0.85
an_iFunction · 0.85
a_uFunction · 0.85
with_childMethod · 0.80
with_nsdeclsMethod · 0.45

Tested by

no test coverage detected