Skip to content

Commit e3f3f50

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9c6185f commit e3f3f50

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/pytest_bdd/steps.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,14 @@ def when(
111111
112112
:return: Decorator function for the step.
113113
"""
114-
return step(name, WHEN, converters=converters, target_fixture=target_fixture, target_exception=target_exception, stacklevel=stacklevel)
114+
return step(
115+
name,
116+
WHEN,
117+
converters=converters,
118+
target_fixture=target_fixture,
119+
target_exception=target_exception,
120+
stacklevel=stacklevel,
121+
)
115122

116123

117124
def then(

tests/feature/test_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def test_when_exception(pytester):
609609
@scenario("when_exception.feature", "Test when exception is generated")
610610
def test_when_exception():
611611
pass
612-
612+
613613
@when("I have injected exception", target_fixture="foo")
614614
def _():
615615
return Exception("Dummy Exception obj")

0 commit comments

Comments
 (0)