Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 23, 2023
1 parent 9c6185f commit e3f3f50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/pytest_bdd/steps.py
Expand Up @@ -111,7 +111,14 @@ def when(
:return: Decorator function for the step.
"""
return step(name, WHEN, converters=converters, target_fixture=target_fixture, target_exception=target_exception, stacklevel=stacklevel)
return step(
name,
WHEN,
converters=converters,
target_fixture=target_fixture,
target_exception=target_exception,
stacklevel=stacklevel,
)


def then(
Expand Down
2 changes: 1 addition & 1 deletion tests/feature/test_steps.py
Expand Up @@ -609,7 +609,7 @@ def test_when_exception(pytester):
@scenario("when_exception.feature", "Test when exception is generated")
def test_when_exception():
pass
@when("I have injected exception", target_fixture="foo")
def _():
return Exception("Dummy Exception obj")
Expand Down

0 comments on commit e3f3f50

Please sign in to comment.