File: run-access-inner-content.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 (25 lines) | stat: -rw-r--r-- 945 bytes parent folder | download | duplicates (2)
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
Feature: Access run inner-content including rendered page-breaks
  In order to extract run content with high-fidelity
  As a developer using python-docx
  I need to access differentiated run content in document order


  Scenario Outline: Run.contains_page_break reports presence of page-break
    Given a run having <zero-or-more> rendered page breaks
     Then run.contains_page_break is <value>

    Examples: Run.contains_page_break cases
      | zero-or-more | value |
      | no           | False |
      | one          | True  |
      | two          | True  |


  Scenario: Run.iter_inner_content() generates the run's text and rendered page-breaks
    Given a run having two rendered page breaks
     Then run.iter_inner_content() generates the run text and rendered page-breaks


  Scenario: Run.text contains the text content of the run
    Given a run having mixed text content
     Then run.text contains the text content of the run