You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We heavy relay on pytest-lazy-fixture for the project:
Unfortunately lazy-fixture hasn't been maintained (not a commit to the project over the last 3 years) and since pytest==8.0.0 (released on 2024-01-27), lazy-fixture is not compatible, see: TvoroG/pytest-lazy-fixture#65
This means we are currently stuck with pytest 7.4.4:
@kevinjqliu I plan to work on this one, can you assign it to me please?
I have tried a couple of approaches, we could do the following which isn't great because we lose some typing annotations for our test signatures but we could define when retrieving the fixture:
@Fokko FYI about the different approaches. I might go with the second but as there are hundreds of uses of lazy-fixture I was trying to get an agreement of the approach before having to go back and change all of them again :)
i like the second approach. It keeps the existing structure where we can define the fixtures once in conftest.py and reuse them in the function decorators
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
Activity
raulcd commentedon Nov 12, 2025
@kevinjqliu I plan to work on this one, can you assign it to me please?
I have tried a couple of approaches, we could do the following which isn't great because we lose some typing annotations for our test signatures but we could define when retrieving the fixture:
or we could create interim fixtures to maintain signatures, even though we create some functions that seem unnecessary
Which approach do you prefer.
Based on some investigation it seems the second approach is the recommended one.
raulcd commentedon Nov 13, 2025
@Fokko FYI about the different approaches. I might go with the second but as there are hundreds of uses of lazy-fixture I was trying to get an agreement of the approach before having to go back and change all of them again :)
kevinjqliu commentedon Nov 13, 2025
hey @raulcd thanks for working on this.
i like the second approach. It keeps the existing structure where we can define the fixtures once in conftest.py and reuse them in the function decorators
Fokko commentedon Nov 13, 2025
Nice one @raulcd, I also prefer the second approach. Thanks for working on this 🙌
infra: upgrade pytest and use pytest_lazy_fixtures (#2978)
github-actions commentedon May 13, 2026
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
rambleraptor commentedon May 13, 2026
With the move over to pytest_lazy_fixtures and the upgrade to pytest 9.0.2, we can close this ticket.
raulcd commentedon May 14, 2026
I agree, closing