-
-
Notifications
You must be signed in to change notification settings - Fork 142
Allow users to override hardcoded hypothesis strategies
#2066
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
Merged
sobolevn
merged 20 commits into
dry-python:master
from
pradeep90:override-pure-functions
Mar 12, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2be1352
hypothesis: get lawful ancestors using the `laws()` classmethod.
pradeep90 16bc815
hypothesis: extract function for registering strategies.
pradeep90 02a4f50
hypothesis: replace `hypothesis` mutation with context manager.
pradeep90 9f5ee66
hypothesis: extract functions for strategy factories.
pradeep90 448ae84
hypothesis: inline context managers for pure functions and type vars.
pradeep90 96106b1
hypothesis: add test for hypothesis state with settings.
pradeep90 f476ef8
hypothesis: inline context managers for container and interfaces.
pradeep90 2957d5e
hypothesis: merge the context mappings.
pradeep90 e093247
hypothesis: rearrange functions in calling order.
pradeep90 9e7d609
hypothesis: extract a pure function for types-to-strategies.
pradeep90 cfc58fc
hypothesis: split settings into default and override.
pradeep90 bdccc04
hypothesis: accept other strategies in `check_all_laws`.
pradeep90 d57d6b0
hypothesis: add end-to-end test for registering callable.
pradeep90 db141ba
hypothesis: merge settings in `check_all_laws`.
pradeep90 31669c2
hypothesis: make `Settings` public and document it inline.
pradeep90 f465cc8
hypothesis: add type test.
pradeep90 17c39ee
hypothesis: add docs.
pradeep90 ab6a362
hypothesis: fix typo.
pradeep90 40da087
hypothesis: rename attribute and parameter for type strategies.
pradeep90 c1b78f2
Update docs/pages/contrib/hypothesis_plugins.rst
sobolevn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also make a note about running them on a single node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this was an existing paragraph that I moved up. I don't have anything to add here.