Skip to content

fix(pytest-bdd): compatibility with pytest-bdd 5 and 6 #851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

delatrie
Copy link
Contributor

@delatrie delatrie commented Apr 2, 2025

Context

Scenario-level descriptions are not supported in Pytest-BDD until version 7. Since we aim to support versions starting from 5, this PR adds some fallbacks when extracting these descriptions.

The PR also disables description tests for Pytest-BDD<7 and makes the step title interpolation test compatible with v5.

Checklist

@delatrie delatrie added the type:bug Pull requests that fix bugs label Apr 2, 2025
@delatrie delatrie marked this pull request as ready for review April 2, 2025 17:36
@delatrie delatrie merged commit 04a9655 into master Apr 3, 2025
13 checks passed
@delatrie delatrie deleted the pytest-bdd-5.0-compat branch April 3, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:pytest-bdd type:bug Pull requests that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants