Skip to content

Comments

Use keyword-only parameters in tests#2865

Merged
adamtheturtle merged 1 commit intomainfrom
keyword-only-test-params
Feb 22, 2026
Merged

Use keyword-only parameters in tests#2865
adamtheturtle merged 1 commit intomainfrom
keyword-only-test-params

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Feb 21, 2026

Summary

  • Enforce keyword-only arguments (using *) in test functions that accept multiple parameters
  • This improves call-site clarity and prevents accidental positional argument errors

Test plan

  • Verify tests still pass

Made with Cursor


Note

Low Risk
Test-only signature changes with no runtime behavior changes outside pytest collection; low risk aside from potential fixture injection/signature mismatch issues.

Overview
Updates the test suite to enforce keyword-only parameters for pytest tests that take multiple fixtures/arguments by inserting * into function signatures (including several @pytest.mark.parametrize cases).

This is a signature-only refactor intended to make test call sites clearer and prevent accidental positional-argument misuse; no production/library code changes.

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

Enforce keyword-only arguments in test functions that accept
multiple parameters, improving call-site clarity.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamtheturtle adamtheturtle merged commit d16decf into main Feb 22, 2026
16 checks passed
@adamtheturtle adamtheturtle deleted the keyword-only-test-params branch February 22, 2026 00:04
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