Skip to content

Commit 0ff18ed

Browse files
committed
Remove dedent on the feature file created so it doesn't unintentionally strip the whitespace that we need for the test!
1 parent f684026 commit 0ff18ed

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/feature/test_steps.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,12 @@ def test_right_aligned_steps(pytester):
626626
"""Parser correctly handles steps that are not left-aligned"""
627627
pytester.makefile(
628628
".feature",
629-
right_aligned_steps=textwrap.dedent(
630-
"""\
631-
Feature: Non-standard step indentation
632-
Scenario: Indent my steps
633-
Given I indent with 4 spaces
634-
Then I indent with 5 spaces to line up
635-
"""
636-
),
629+
right_aligned_steps="""\
630+
Feature: Non-standard step indentation
631+
Scenario: Indent my steps
632+
Given I indent with 4 spaces
633+
Then I indent with 5 spaces to line up
634+
""",
637635
)
638636
pytester.makepyfile(
639637
textwrap.dedent(

0 commit comments

Comments
 (0)