File: par-insert-paragraph.feature

package info (click to toggle)
python-docx 0.8.11%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,640 kB
  • sloc: xml: 25,311; python: 21,911; makefile: 168
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