File: doc-access-collections.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 (29 lines) | stat: -rw-r--r-- 981 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
21
22
23
24
25
26
27
28
29
Feature: Access document collections
  In order to operate on objects related to a document
  As a developer using python-docx
  I need a way to access each of the document's collections


  Scenario: Access the inline shapes collection of a document
     Given a document having inline shapes
      Then document.inline_shapes is an InlineShapes object


  Scenario: Access the paragraphs in the document body as a list
     Given a document containing three paragraphs
      Then document.paragraphs is a list containing three paragraphs


  Scenario: Access the section collection of a document
     Given a document having sections
      Then document.sections is a Sections object


  Scenario: Access the styles collection of a document
    Given a document having styles
     Then document.styles is a Styles object


  Scenario: Access the tables collection of a document
    Given a document having three tables
     Then document.tables is a list containing three tables