Skip to content

[PR #13346/46c94ee8 backport][8.3.x] Add note on using mixin classes for abstract test classes in documentation#13359

Merged
nicoddemus merged 1 commit into8.3.xfrom
patchback/backports/8.3.x/46c94ee82ddbb4a541f5bd4fecd0b4071e1972ae/pr-13346
Apr 7, 2025
Merged

[PR #13346/46c94ee8 backport][8.3.x] Add note on using mixin classes for abstract test classes in documentation#13359
nicoddemus merged 1 commit into8.3.xfrom
patchback/backports/8.3.x/46c94ee82ddbb4a541f5bd4fecd0b4071e1972ae/pr-13346

Conversation

@patchback
Copy link

@patchback patchback bot commented Apr 7, 2025

This is a backport of PR #13346 as merged into main (46c94ee).

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.

@nicoddemus nicoddemus enabled auto-merge (squash) April 7, 2025 11:04
@nicoddemus nicoddemus merged commit 26af494 into 8.3.x Apr 7, 2025
29 checks passed
@nicoddemus nicoddemus deleted the patchback/backports/8.3.x/46c94ee82ddbb4a541f5bd4fecd0b4071e1972ae/pr-13346 branch April 7, 2025 11:21
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.

2 participants