File: par-insert-paragraph.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 (12 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
Feature: Insert a paragraph before or after a paragraph
  In order to add new content in the middle of an existing document
  As a developer using python-docx
  I need a way to insert a paragraph relative to another paragraph


  Scenario: Add a new paragraph above an existing paragraph
    Given a document containing three paragraphs
     When I insert a paragraph above the second paragraph
     Then the document contains four paragraphs
      And the text of the second paragraph matches the text I set
      And the style of the second paragraph matches the style I set