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

Function when_save_and_reload_prs

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

Source from the content-addressed store, hash-verified

93
94@when("I save and reload the presentation")
95def when_save_and_reload_prs(context: Context):
96 if os.path.isfile(saved_pptx_path):
97 os.remove(saved_pptx_path)
98 context.prs.save(saved_pptx_path)
99 context.prs = Presentation(saved_pptx_path)
100
101
102@when("I save that stream to a file")

Callers

nothing calls this directly

Calls 3

PresentationFunction · 0.90
removeMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…