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

Function when_open_presentation_stream

features/steps/presentation.py:87–91  ·  view source on GitHub ↗
(context: Context)

Source from the content-addressed store, hash-verified

85
86@when("I open a presentation contained in a stream")
87def when_open_presentation_stream(context: Context):
88 with open(test_pptx("test"), "rb") as f:
89 stream = io.BytesIO(f.read())
90 context.prs = Presentation(stream)
91 stream.close()
92
93
94@when("I save and reload the presentation")

Callers

nothing calls this directly

Calls 4

test_pptxFunction · 0.90
PresentationFunction · 0.90
readMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…