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

Function when_save_stream_to_a_file

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

Source from the content-addressed store, hash-verified

101
102@when("I save that stream to a file")
103def when_save_stream_to_a_file(context: Context):
104 if os.path.isfile(saved_pptx_path):
105 os.remove(saved_pptx_path)
106 context.stream.seek(0)
107 with open(saved_pptx_path, "wb") as f:
108 f.write(context.stream.read())
109
110
111@when("I save the presentation")

Callers

nothing calls this directly

Calls 3

removeMethod · 0.80
readMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…