MCPcopy Create free account
hub / github.com/scanny/python-pptx / then_line_width_is_value

Function then_line_width_is_value

features/steps/line.py:95–99  ·  view source on GitHub ↗
(context, line_width)

Source from the content-addressed store, hash-verified

93
94@then("line.width is {line_width}")
95def then_line_width_is_value(context, line_width):
96 expected_value = {"0": 0, "1 pt": Pt(1), "2.34 pt": Pt(2.34)}[line_width]
97 line_width = context.line.width
98 assert line_width == expected_value
99 assert isinstance(line_width, Length)

Callers

nothing calls this directly

Calls 1

PtClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…