pytest-dev / pytest-bdd

BDD library for the py.test runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.3k stars 219 forks source link

Version 7.1.2 no longer provides pytest_bdd.steps.inject_fixture #684

Closed musicinmybrain closed 6 months ago

musicinmybrain commented 6 months ago

The jrnl project uses pytest_bdd.steps.inject_fixture,

https://github.com/jrnl-org/jrnl/blob/2af05e4008b284844a7fe85a3cc308464db5ef7d/tests/lib/when_steps.py#L10

from pytest_bdd.steps import inject_fixture

but this has stopped working between 7.1.1 and 7.1.2:

python -c 'from pytest_bdd.steps import inject_fixture'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'inject_fixture' from 'pytest_bdd.steps' (/path/to/venv/_e/lib64/python3.12/site-packages/pytest_bdd/steps.py)
youtux commented 6 months ago

we don’t maintain public support for such functions that are bot mentioned in the docs.