Skip to content

Commit db7a828

Browse files
committed
acpt: add scenarios for first/even header/footer
1 parent 0d2083f commit db7a828

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

features/sct-section.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,30 @@ Feature: Access and change section properties
2727
| without | False |
2828

2929

30+
@wip
31+
Scenario: Section.even_page_footer
32+
Given a Section object as section
33+
Then section.even_page_footer is a _Footer object
34+
35+
36+
@wip
37+
Scenario: Section.even_page_header
38+
Given a Section object as section
39+
Then section.even_page_header is a _Header object
40+
41+
42+
@wip
43+
Scenario: Section.first_page_footer
44+
Given a Section object as section
45+
Then section.first_page_footer is a _Footer object
46+
47+
48+
@wip
49+
Scenario: Section.first_page_header
50+
Given a Section object as section
51+
Then section.first_page_header is a _Header object
52+
53+
3054
Scenario: Section.footer
3155
Given a Section object as section
3256
Then section.footer is a _Footer object

features/steps/section.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,34 @@ def then_section_different_first_page_header_footer_is(context, bool_val):
162162
)
163163

164164

165+
@then("section.even_page_footer is a _Footer object")
166+
def then_section_even_page_footer_is_a_Footer_object(context):
167+
actual = type(context.section.even_page_footer).__name__
168+
expected = "_Footer"
169+
assert actual == expected, "section.even_page_footer is a %s object" % actual
170+
171+
172+
@then("section.even_page_header is a _Header object")
173+
def then_section_even_page_header_is_a_Header_object(context):
174+
actual = type(context.section.even_page_header).__name__
175+
expected = "_Header"
176+
assert actual == expected, "section.even_page_header is a %s object" % actual
177+
178+
179+
@then("section.first_page_footer is a _Footer object")
180+
def then_section_first_page_footer_is_a_Footer_object(context):
181+
actual = type(context.section.first_page_footer).__name__
182+
expected = "_Footer"
183+
assert actual == expected, "section.first_page_footer is a %s object" % actual
184+
185+
186+
@then("section.first_page_header is a _Header object")
187+
def then_section_first_page_header_is_a_Header_object(context):
188+
actual = type(context.section.first_page_header).__name__
189+
expected = "_Header"
190+
assert actual == expected, "section.first_page_header is a %s object" % actual
191+
192+
165193
@then("section.footer is a _Footer object")
166194
def then_section_footer_is_a_Footer_object(context):
167195
actual = type(context.section.footer).__name__

0 commit comments

Comments
 (0)