forked from scanny/python-pptx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tbl: scanny#86 add/remove row and column support
- Loading branch information
1 parent
b31cf20
commit f3dec27
Showing
6 changed files
with
273 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ _scratch/ | |
/spec/gen_spec/spec*.db | ||
tags | ||
/tests/debug.py | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Feature: Change properties of table | ||
In order to change the formatting of a table to meet my needs | ||
As a developer using python-pptx | ||
I need to set the properties of a table | ||
|
||
|
||
Scenario: Set column widths | ||
Given a 2x2 table | ||
When I set the width of the table's columns | ||
And I save the presentation | ||
Then the table appears with the new column widths | ||
|
||
|
||
Scenario: Set table first_row property | ||
Given a 2x2 table | ||
When I set the first_row property to True | ||
And I save the presentation | ||
Then the first row of the table has special formatting | ||
|
||
|
||
Scenario: Set table first_col property | ||
Given a 2x2 table | ||
When I set the first_col property to True | ||
And I save the presentation | ||
Then the first column of the table has special formatting | ||
|
||
|
||
Scenario: Set table last_row property | ||
Given a 2x2 table | ||
When I set the last_row property to True | ||
And I save the presentation | ||
Then the last row of the table has special formatting | ||
|
||
|
||
Scenario: Set table last_col property | ||
Given a 2x2 table | ||
When I set the last_col property to True | ||
And I save the presentation | ||
Then the last column of the table has special formatting | ||
|
||
|
||
Scenario: Set table horz_banding property | ||
Given a 2x2 table | ||
When I set the horz_banding property to True | ||
And I save the presentation | ||
Then the rows of the table have alternating shading | ||
|
||
|
||
Scenario: Set table vert_banding property | ||
Given a 2x2 table | ||
When I set the vert_banding property to True | ||
And I save the presentation | ||
Then the columns of the table have alternating shading | ||
|
||
|
||
Scenario: Append table row | ||
Given a 2x2 table | ||
When I add a row to a table | ||
And I save the presentation | ||
Then the table now has 3 rows | ||
|
||
|
||
Scenario: Remove table row | ||
Given a 2x2 table | ||
When I remove a row from a table | ||
And I save the presentation | ||
Then the table now has 1 row | ||
|
||
|
||
Scenario: Append table column | ||
Given a 2x2 table | ||
When I add a column to a table | ||
And I save the presentation | ||
Then the table now has 3 columns | ||
|
||
|
||
Scenario: Append table column | ||
Given a 2x2 table | ||
When I remove a column from a table | ||
And I save the presentation | ||
Then the table now has 1 column |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters