File: doc-add-table.feature

package info (click to toggle)
python-docx 1.2.0%2Bdfsg-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,216 kB
  • sloc: xml: 25,323; python: 23,414; makefile: 175
file content (20 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (3)
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']