Skip to content

Commit 675aa33

Browse files
author
Steve Canny
committed
acpt: update scenario for Para.ins_para_before()
to use new style API
1 parent 5e191e7 commit 675aa33

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

features/par-insert-paragraph.feature

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Feature: Insert a paragraph before or after a paragraph
44
I need a way to insert a paragraph relative to another paragraph
55

66

7-
@wip
87
Scenario: Add a new paragraph above an existing paragraph
98
Given a document containing three paragraphs
109
When I insert a paragraph above the second paragraph

features/steps/paragraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def then_the_paragraph_has_the_text_I_set(context):
152152
@then('the style of the second paragraph matches the style I set')
153153
def then_the_style_of_the_second_paragraph_matches_the_style_I_set(context):
154154
second_paragraph = context.document.paragraphs[1]
155-
assert second_paragraph.style == 'Heading1'
155+
assert second_paragraph.style.name == 'Heading 1'
156156

157157

158158
@then('the text of the second paragraph matches the text I set')

0 commit comments

Comments
 (0)