forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-add-picture.feature
More file actions
24 lines (19 loc) · 804 Bytes
/
run-add-picture.feature
File metadata and controls
24 lines (19 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Feature: Add picture to a run
In order to place an inline picture at an arbitrary place in a document
As a developer using python-docx
I need a way to add a picture to a run
Scenario: Add a picture to a body paragraph run
Given a run
When I add a picture to the run
Then the picture appears at the end of the run
And the document contains the inline picture
Scenario Outline: Add a picture to a run in a table cell
Given a run inside a table cell retrieved from <cell-source>
When I add a picture to the run
Then the picture appears at the end of the run
And the document contains the inline picture
Examples: Table cell sources
| cell-source |
| Table.cell |
| Table.row.cells |
| Table.column.cells |