This commit is contained in:
Alessio Bogon 2022-07-10 15:21:02 +02:00
parent cf104cb045
commit 158d29b9e5
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ def _step_decorator(
func._pytest_bdd_target_fixture = target_fixture # TODO: This should go in StepFunctionContext too
func._pytest_bdd_step_context = step_func_context
lazy_step_func._pytest_bdd_step_context = step_func_context
caller_locals = get_caller_module_locals()
caller_locals[fixture_step_name] = pytest.fixture(name=fixture_step_name)(lazy_step_func)
return func