Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Dec 2, 2023
1 parent 95915bc commit fb5d800
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pytest_bdd/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def scenario_wrapper(request: FixtureRequest, _pytest_bdd_example: dict[str, str
config.hook.pytest_bdd_apply_tag(tag=tag, function=scenario_wrapper)

scenario_wrapper.__doc__ = f"{feature_name}: {scenario_name}"

# TODO: Use a WeakKeyDictionary to store the scenario object instead of attaching it to the function
scenario_wrapper.__scenario__ = templated_scenario
return cast(Callable[P, T], scenario_wrapper)

Expand Down

0 comments on commit fb5d800

Please sign in to comment.