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

Function when_add_picture_specifying_height

features/steps/document.py:127–129  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

125
126@when("I add a picture specifying a height of 1.5 inches")
127def when_add_picture_specifying_height(context):
128 document = context.document
129 context.picture = document.add_picture(test_file("monty-truth.png"), height=Inches(1.5))
130
131
132@when("I add a picture specifying a width of 1.5 inches")

Callers

nothing calls this directly

Calls 3

test_fileFunction · 0.90
InchesClass · 0.90
add_pictureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…