Python(feat): pytest parameterize support#570
Draft
alexluck-sift wants to merge 3 commits into
Draft
Conversation
Contributor
|
Python docs preview: https://sift-stack.github.io/sift/python/pr-570/ Deployed from |
93cfa1c to
74b8b05
Compare
5448db8 to
941d9c9
Compare
3ae545c to
c403740
Compare
941d9c9 to
a4ba332
Compare
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.
Summary
test_foo), and stacked@pytest.mark.parametrizedecorators nest outer-to-inner.pytest_collection_modifyitemsand sort items by it so siblings share a single open parent step; a new autouse_parametrize_parentsfixture diffs the path against the open stack and opens/closes parents lazily.module_substepteardown andpytest_sessionfinishso the report's step assertions hold.pytester-driven cases (single parametrize, stacked decorators, fixture params, module boundary isolation, full parent chain) using aFakeReportContextthat records the resulting step tree.