File: cmt-props.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 (35 lines) | stat: -rw-r--r-- 1,005 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Feature: Get comment properties
  In order to characterize comments by their metadata
  As a developer using python-docx
  I need methods to access comment metadata properties


  Scenario: Comment.id
    Given a Comment object
     Then comment.comment_id is the comment identifier


  Scenario: Comment.author
    Given a Comment object
     Then comment.author is the author of the comment


  Scenario: Comment.initials
    Given a Comment object
     Then comment.initials is the initials of the comment author


  Scenario: Comment.timestamp
    Given a Comment object
     Then comment.timestamp is the date and time the comment was authored


  Scenario: Comment.paragraphs[0].text
    Given a Comment object
     When I assign para_text = comment.paragraphs[0].text
     Then para_text is the text of the first paragraph in the comment


  Scenario: Retrieve embedded image from a comment
    Given a Comment object containing an embedded image
     Then I can extract the image from the comment