Diagnostic output
n/a
Current Behavior
Around a week ago, pytest-bdd 7.1.2 was released and all of our PRs started failing tests with this error on tests/lib/when_steps.py:
ImportError: Error importing plugin "tests.lib.when_steps": cannot import name 'inject_fixture' from 'pytest_bdd.steps'
Expected Behavior
Tests should be running fine. This patch release of pytest-bdd is a breaking change for us, though.
Repro Steps
- Open pyproject.toml, pin pytest-bdd version:
pytest-bdd = "7.1.1"
- Run
poetry install and poetry run pytest. Everything passes.
- Open pyproject.toml, pin pytest-bdd version:
pytest-bdd = "7.1.2"
- Run
poetry install and poetry run pytest. Everything fails.
Debug output
n/a
Other Information
I don't have a lot of time to look at this now, and am tempted to pin pytest to 7.1.1 for now just to be able to get through PRs, though if a contributor has a fix for this, it would be welcome.
Diagnostic output
n/a
Current Behavior
Around a week ago, pytest-bdd 7.1.2 was released and all of our PRs started failing tests with this error on
tests/lib/when_steps.py:Expected Behavior
Tests should be running fine. This patch release of pytest-bdd is a breaking change for us, though.
Repro Steps
pytest-bdd = "7.1.1"poetry installandpoetry run pytest. Everything passes.pytest-bdd = "7.1.2"poetry installandpoetry run pytest. Everything fails.Debug output
n/a
Other Information
I don't have a lot of time to look at this now, and am tempted to pin pytest to 7.1.1 for now just to be able to get through PRs, though if a contributor has a fix for this, it would be welcome.