Skip to content

Use * for keyword-only arguments in pytest fixtures#2870

Merged
adamtheturtle merged 1 commit intomainfrom
pytest-fixture-keyword-only-args
Feb 23, 2026
Merged

Use * for keyword-only arguments in pytest fixtures#2870
adamtheturtle merged 1 commit intomainfrom
pytest-fixture-keyword-only-args

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Feb 23, 2026

Pytest fixture functions should use * for keyword-only arguments when they have arguments. This change adds * to all affected fixtures.

Made with Cursor


Note

Low Risk
Signature-only changes in test fixtures; low risk aside from potential breakage if any fixtures are invoked directly with positional arguments.

Overview
Updates multiple pytest fixtures in conftest.py and tests/conftest.py to declare their dependencies as keyword-only by adding * to fixture function signatures.

This is a non-functional test harness change intended to enforce clearer fixture parameter passing and avoid accidental positional-argument usage.

Written by Cursor Bugbot for commit 4ab2542. This will update automatically on new commits. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamtheturtle adamtheturtle merged commit 9c40697 into main Feb 23, 2026
16 checks passed
@adamtheturtle adamtheturtle deleted the pytest-fixture-keyword-only-args branch February 23, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant