GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(pytest-bdd): compatibility with pytest-bdd 5 and 6 by delatrie · Pull Request #851 · allure-framework/allure-python

Conversation

@delatrie

@delatrie delatrie commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

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

  • Sign Allure CLA
  • Provide unit tests

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
delatrie added 3 commits April 3, 2025 00:22
@delatrie
test(pytest-bdd): disable description tests for pytest-bdd<7
b3cfafb
@delatrie
test(pytest-bdd): make step interpolation test compatible with pytest…
0cabb32
…-bdd 5
@delatrie
fix(pytest-bdd): fix compat with pytest-bdd<7
9524805
@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 added the theme:pytest-bdd label Apr 3, 2025
todti
todti approved these changes Apr 3, 2025
View reviewed changes
@delatrie
delatrie merged commit 04a9655 into master Apr 3, 2025
@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

Reviewers

@todti todti todti approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

theme:pytest-bdd type:bug Pull requests that fix bugs

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@delatrie @todti
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.