File: sty-latent-add-del.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 (18 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Feature: Add or delete a latent style
  In order to determine which latent styles are defined in a document
  As a developer using python-docx
  I need a way to add and delete a latent style


  Scenario: Add a latent style
    Given a document having known styles
     When I add a latent style named 'Foobar'
     Then the document has one additional latent style
      And latent_styles['Foobar'] is a latent style


  Scenario: Delete a latent style
    Given a document having known styles
     When I delete a latent style
     Then the document has one fewer latent styles
      And the deleted latent style is not in the latent styles collection