Skip to content

Rename 'TestFilesCollection' dataclass to 'FileCollectionParam', fixing pytest warnings#2337

Open
sirosen wants to merge 1 commit intojazzband:mainfrom
sirosen:minor-test-param-rename
Open

Rename 'TestFilesCollection' dataclass to 'FileCollectionParam', fixing pytest warnings#2337
sirosen wants to merge 1 commit intojazzband:mainfrom
sirosen:minor-test-param-rename

Conversation

@sirosen
Copy link
Member

@sirosen sirosen commented Feb 13, 2026

pytest checks to see if this class can be treated as a test class under
default rules because its name started with Test. This results in
warnings in test output, and can be trivially fixed by renaming the
class.

...Param is potentially a good naming scheme for these dataclasses in
general (see also #2336). It connects to parametrize usage well.


As a testsuite helper class rename, this is sufficiently minor that I don't think it merits a contrib note.
(Hence, no changelog.)

Contributor checklist
  • Included tests for the changes.
  • A change note is created in changelog.d/ (see changelog.d/README.md
    for instructions) or the PR text says "no changelog needed".
Maintainer checklist
  • If no changelog is needed, apply the bot:chronographer:skip label.
  • Assign the PR to an existing or new milestone for the target version
    (following Semantic Versioning).

`pytest` checks to see if this class can be treated as a test class under
default rules because its name started with `Test`. This results in
warnings in test output, and can be trivially fixed by renaming the
class.

`...Param` is potentially a good naming scheme for these dataclasses in
general (see also jazzband#2336). It connects to `parametrize` usage well.
@sirosen sirosen added this to the 7.5.4 milestone Feb 13, 2026
@sirosen sirosen requested a review from webknjaz February 13, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments