This repository was archived by the owner on Jan 7, 2024. It is now read-only.
forked from holli-holzer/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtbl-props.feature
More file actions
55 lines (43 loc) · 2.12 KB
/
Copy pathtbl-props.feature
File metadata and controls
55 lines (43 loc) · 2.12 KB
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
53
54
55
Feature: Get and set table properties
In order to format a table to my requirements
As a developer using python-docx
I need a way to get and set a table's properties
Scenario Outline: Determine table alignment
Given a table having <alignment> alignment
Then table.alignment is <value>
Examples: table alignment settings
| alignment | value |
| inherited | None |
| left | WD_TABLE_ALIGNMENT.LEFT |
| right | WD_TABLE_ALIGNMENT.RIGHT |
| center | WD_TABLE_ALIGNMENT.CENTER |
Scenario Outline: Set table alignment
Given a table having <alignment> alignment
When I assign <value> to table.alignment
Then table.alignment is <value>
Examples: results of assignment to table.alignment
| alignment | value |
| inherited | WD_TABLE_ALIGNMENT.LEFT |
| left | WD_TABLE_ALIGNMENT.RIGHT |
| right | WD_TABLE_ALIGNMENT.CENTER |
| center | None |
Scenario Outline: Get autofit layout setting
Given a table having an autofit layout of <autofit-setting>
Then the reported autofit setting is <reported-autofit>
Examples: table autofit settings
| autofit-setting | reported-autofit |
| no explicit setting | autofit |
| autofit | autofit |
| fixed | fixed |
Scenario Outline: Set autofit layout setting
Given a table having an autofit layout of <autofit-setting>
When I set the table autofit to <new-setting>
Then the reported autofit setting is <reported-autofit>
Examples: table column width values
| autofit-setting | new-setting | reported-autofit |
| no explicit setting | autofit | autofit |
| no explicit setting | fixed | fixed |
| fixed | autofit | autofit |
| autofit | autofit | autofit |
| fixed | fixed | fixed |
| autofit | fixed | fixed |