Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note on using mixin classes for abstract test classes in documentation #13346

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BahramF73
Copy link
Contributor

Description

This PR adds a new recipe to the documentation for handling abstract test classes in pytest. The recipe demonstrates how to use a mixin class to automatically manage the test attribute for subclasses of abstract test classes. This ensures that subclasses are collected by pytest without requiring manual configuration.

Closes #8612

Checklist

  • Allow maintainers to push and squash when merging my commits.
  • Created a new changelog file: 8612.doc.rst.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Apr 3, 2025
@BahramF73 BahramF73 closed this Apr 3, 2025
@BahramF73 BahramF73 deleted the docs-improvement-8612 branch April 3, 2025 11:44
@BahramF73 BahramF73 restored the docs-improvement-8612 branch April 3, 2025 11:55
@BahramF73 BahramF73 reopened this Apr 3, 2025
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.

Mixin for abstract test classes
1 participant