Skip to content

fix(pytest): can't change a fixture's title in pytest 8.4 or later #866

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 1 commit into from
Jun 9, 2025

Conversation

delatrie
Copy link
Contributor

@delatrie delatrie commented Jun 9, 2025

Context

Starting from pytest 8.4, fixtures are represented as instances of the _pytest.fixtures.FixtureFunctionDefinition class. See pytest-dev/pytest#12473 for more details.

This PR adapts Allure Pytest to take this into account when attaching a custom name to a function using the @allure.title decorator.

@delatrie delatrie added theme:pytest type:bug Pull requests that fix bugs labels Jun 9, 2025
@delatrie delatrie force-pushed the pytest-8.4-fixture-title-compat-fix branch from 00de7a9 to e027adc Compare June 9, 2025 14:14
@delatrie delatrie merged commit 9d12890 into master Jun 9, 2025
20 checks passed
@delatrie delatrie deleted the pytest-8.4-fixture-title-compat-fix branch June 9, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:pytest type:bug Pull requests that fix bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants