File: doc-styles.feature

package info (click to toggle)
python-docx 1.2.0%2Bdfsg-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 7,216 kB
  • sloc: xml: 25,323; python: 23,414; makefile: 175
file content (17 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Feature: Access a document style
  In order to operate on a particular document style
  As a developer using python-docx
  I access to each style in the document style collection


  Scenario Outline: Access style in style collection
    Given a document having <styles-state>
     Then len(styles) is <style-count>
      And I can iterate over its styles
      And I can access a style by style id
      And I can access a style by its UI name

    Examples: having styles or not
      | styles-state   | style-count |
      | a styles part  |      6      |
      | no styles part |      4      |