File: doc-add-comment.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 (13 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Feature: Add a comment to a document
  In order add a comment to a document
  As a developer using python-docx
  I need a way to add a comment specifying both its content and its reference


  Scenario: Document.add_comment(runs, text, author, initials)
    Given a document having a comments part
     When I assign comment = document.add_comment(runs, "A comment", "John Doe", "JD")
     Then comment is a Comment object
      And comment.text == "A comment"
      And comment.author == "John Doe"
      And comment.initials == "JD"