1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Feature: Add a table
In order to include tablular information in a document
As a developer using python-docx
I need a way to add a table
Scenario: Add a table specifying only row and column count
Given a blank document
When I add a 2 x 2 table specifying only row and column count
Then the document contains a 2 x 2 table
And table.style is styles['Normal Table']
And the width of each column is 3.0 inches
And the width of each cell is 3.0 inches
Scenario: Add a table specifying style
Given a document having built-in styles
When I add a 2 x 2 table specifying style 'Table Grid'
Then the document contains a 2 x 2 table
And table.style is styles['Table Grid']
|