1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
Feature: Get and set table row properties
In order to format a table row to my requirements
As a developer using python-docx
I need a way to get and set the properties of a table row
Scenario Outline: Get Row.height_rule
Given a table row having height rule <state>
Then row.height_rule is <value>
Examples: Row.height_rule value cases
| state | value |
| no explicit setting | None |
| automatic | AUTO |
| at least | AT_LEAST |
Scenario Outline: Set Row.height_rule
Given a table row having height rule <state>
When I assign <value> to row.height_rule
Then row.height_rule is <value>
Examples: Row.height_rule assignment cases
| state | value |
| no explicit setting | AUTO |
| automatic | AT_LEAST |
| at least | None |
| no explicit setting | None |
Scenario Outline: Get Row.height
Given a table row having height of <state>
Then row.height is <value>
Examples: Row.height value cases
| state | value |
| no explicit setting | None |
| 2 inches | 1828800 |
| 3 inches | 2743200 |
Scenario Outline: Set row height
Given a table row having height of <state>
When I assign <value> to row.height
Then row.height is <value>
Examples: Row.height assignment cases
| state | value |
| no explicit setting | 1828800 |
| 2 inches | 2743200 |
| 3 inches | None |
| no explicit setting | None |
|