FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add note on using mixin classes for abstract test classes in documentation by BahramF73 · Pull Request #13346 · pytest-dev/pytest · GitHub

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

Merged
nicoddemus merged 2 commits into
pytest-dev:mainfrom
BahramF73:docs-improvement-8612
Apr 7, 2025
Merged

Add note on using mixin classes for abstract test classes in documentation#13346
nicoddemus merged 2 commits into
pytest-dev:mainfrom
BahramF73:docs-improvement-8612

Conversation

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

nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

nicoddemus merged commit 46c94ee into pytest-dev:main Apr 7, 2025

patchback Bot commented Apr 7, 2025
edited
Loading

Copy link
Copy Markdown

Backport to 8.3.x: 💚 backport PR created

✅ Backport PR branch: patchback/backports/8.3.x/46c94ee82ddbb4a541f5bd4fecd0b4071e1972ae/pr-13346

Backported as #13359

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback Bot pushed a commit that referenced this pull request Apr 7, 2025
nicoddemus pushed a commit that referenced this pull request Apr 7, 2025
…ation (#13346) (#13359)

(cherry picked from commit 46c94ee)

Co-authored-by: Bahram Farahmand <bahram.0098.bf@gmail.com>
BahramF73 deleted the docs-improvement-8612 branch April 7, 2025 13:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

2 participants


Back | FazBrowse Home | New Git URL