pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.32k stars 221 forks source link

Step arguments are no longer fixtures #493

Closed olegpidsadnyi closed 2 years ago

olegpidsadnyi commented 2 years ago

Step parsed arguments often conflict with the fixtures. There's no real reason for these arguments to define fixtures. If step has to introduce a fixture the target_fixture parameter should be used.

codecov[bot] commented 2 years ago

Codecov Report

Merging #493 (8133dc2) into master (6730b42) will decrease coverage by 0.08%. The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
- Coverage   95.56%   95.48%   -0.09%     
==========================================
  Files          49       48       -1     
  Lines        1579     1573       -6     
  Branches      171      171              
==========================================
- Hits         1509     1502       -7     
  Misses         44       44              
- Partials       26       27       +1     
Impacted Files Coverage Δ
tests/feature/test_multiline.py 100.00% <ø> (ø)
tests/feature/test_outline.py 100.00% <ø> (ø)
tests/feature/test_report.py 75.67% <ø> (ø)
pytest_bdd/scenario.py 91.07% <88.88%> (-0.50%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6730b42...8133dc2. Read the comment docs.