Skip to content

fixtures: suggest removing 'self' for bare test functions (#12907) - #15234

Closed
Harsh98194 wants to merge 2 commits into
pytest-dev:mainfrom
Harsh98194:fix-12907-self-fixture-hint
Closed

Harsh98194 wants to merge 2 commits into
pytest-dev:mainfrom
Harsh98194:fix-12907-self-fixture-hint

Conversation

@Harsh98194

Copy link
Copy Markdown

Closes #12907.

Adds a helpful hint when a bare test function declares self as a parameter instead of being inside a class method.

@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Oct 21, 2026
@The-Compiler

Copy link
Copy Markdown
Member

1:1 exact copy of someone else's contribution at #14908 without any attribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve (beginner) UX around self vs. fixtures

2 participants