Skip to content

Commit 0f67034

Browse files
author
Steve Canny
committed
OpcPackage round-trips a pptx file
1 parent e166178 commit 0f67034

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

features/save-package.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Feature: Save an OPC package
33
As a pptx developer
44
I want to see it pass a basic round-trip sanity-check
55

6-
@wip
76
Scenario: Round-trip a .pptx file
87
Given a clean working directory
98
When I open a PowerPoint file

features/steps/opc_steps.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,12 @@ def step_then_expected_parts_are_loaded(context):
190190
assert rel.target_part.partname == target, (
191191
"target partname for %s on %s is '%s'" %
192192
(rId, partname, rel.target_part.partname))
193+
194+
195+
@then('I see the pptx file in the working directory')
196+
def step_then_see_pptx_file_in_working_dir(context):
197+
reason = "file '%s' not found" % saved_pptx_path
198+
assert os.path.isfile(saved_pptx_path), reason
199+
minimum = 20000
200+
filesize = os.path.getsize(saved_pptx_path)
201+
assert filesize > minimum

0 commit comments

Comments
 (0)