DX: define tests with pytest-describe - #227
Merged
Merged
Conversation
redeboer
marked this pull request as draft
September 2, 2026 17:30
pytest-describe
redeboer
force-pushed
the
dependabot/lock-a509110cae
branch
from
September 3, 2026 15:17
61b2a01 to
7f91f58
Compare
redeboer
force-pushed
the
dependabot/lock-6ae17a024f
branch
from
September 3, 2026 15:47
70e692f to
1901622
Compare
redeboer
removed this pull request from stack #228
September 9, 2026 16:14
redeboer
force-pushed
the
dependabot/lock-6ae17a024f
branch
from
September 9, 2026 16:19
dece86b to
ce14e8e
Compare
redeboer
force-pushed
the
dependabot/lock-6ae17a024f
branch
from
September 9, 2026 16:20
ce14e8e to
95e4b34
Compare
redeboer
force-pushed
the
dependabot/lock-6ae17a024f
branch
from
September 9, 2026 16:22
22085c8 to
addd570
Compare
pytest-describe
redeboer
self-requested a review
September 9, 2026 16:25
redeboer
marked this pull request as ready for review
September 9, 2026 16:25
redeboer
approved these changes
Sep 9, 2026
pytest-describe
redeboer
enabled auto-merge (squash)
September 9, 2026 16:27
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🖱️ Developer experience
pytest-describeplugin instead ofTest*classes and flattest_*functions. Each tested unit gets adescribe_<unit>()block whose cases areit_<behavior>()functions, so node IDs read astests/test_decay.py::describe_IsobarNode::it_exposes_childrenand a failing case names both the unit and the behavior that broke.describe_*block, so the cases themselves only contain their assertions.