File: doc-settings.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 (38 lines) | stat: -rw-r--r-- 1,398 bytes parent folder | download | duplicates (3)
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
36
37
38
Feature: Document.settings
  In order to operate on document-level settings
  As a developer using python-docx
  I need access to settings to the Settings object for the document
  And I need properties and methods on Settings


  Scenario Outline: Access document settings
    Given a document having <a-or-no> settings part
     Then document.settings is a Settings object

    Examples: having a settings part or not
      | a-or-no   |
      | a         |
      | no        |


  Scenario Outline: Settings.odd_and_even_pages_header_footer getter
    Given a Settings object <with-or-without> odd and even page headers as settings
     Then settings.odd_and_even_pages_header_footer is <value>

    Examples: Settings.odd_and_even_pages_header_footer states
      | with-or-without | value |
      | with            | True  |
      | without         | False |


  Scenario Outline: Settings.odd_and_even_pages_header_footer setter
    Given a Settings object <with-or-without> odd and even page headers as settings
     When I assign <value> to settings.odd_and_even_pages_header_footer
     Then settings.odd_and_even_pages_header_footer is <value>

    Examples: Settings.odd_and_even_pages_header_footer assignment cases
      | with-or-without | value |
      | with            | True  |
      | with            | False |
      | without         | True  |
      | without         | False |