Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Mar 11, 2022
1 parent 260b7f2 commit ad86cfe
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions tests/feature/test_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,20 +302,21 @@ def test_step_hooks(testdir):
testdir.makefile(
".feature",
test="""
Scenario: When step has hook on failure
Given I have a bar
When it fails
Scenario: When step's dependency a has failure
Given I have a bar
When it's dependency fails
Scenario: When step is not found
Given not found
Scenario: When step validation error happens
Given foo
And foo
Feature: Step hooks
Scenario: When step has hook on failure
Given I have a bar
When it fails
Scenario: When step's dependency a has failure
Given I have a bar
When it's dependency fails
Scenario: When step is not found
Given not found
Scenario: When step validation error happens
Given foo
And foo
""",
)
testdir.makepyfile(
Expand Down Expand Up @@ -419,16 +420,17 @@ def test_step_trace(testdir):
testdir.makefile(
".feature",
test="""
Scenario: When step has failure
Given I have a bar
When it fails
Scenario: When step is not found
Given not found
Scenario: When step validation error happens
Given foo
And foo
Feature: Test step trace
Scenario: When step has failure
Given I have a bar
When it fails
Scenario: When step is not found
Given not found
Scenario: When step validation error happens
Given foo
And foo
""",
)
testdir.makepyfile(
Expand Down

0 comments on commit ad86cfe

Please sign in to comment.