-
Notifications
You must be signed in to change notification settings - Fork 590
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
Warn when passing *strategies* as elements to sampled_from
(rather than to one_of
)?
#3819
Labels
legibility
make errors helpful and Hypothesis grokable
Comments
vreuter
changed the title
Warn when passing strategies as elements to sampled_from (rather than to one_of)?
Warn when passing strategies as elements to Dec 20, 2023
sampled_from
(rather than to one_of
)?
vreuter
changed the title
Warn when passing strategies as elements to
Warn when passing _strategies_ as elements to Dec 20, 2023
sampled_from
(rather than to one_of
)?sampled_from
(rather than to one_of
)?
vreuter
changed the title
Warn when passing _strategies_ as elements to
Warn when passing *strategies* as elements to Dec 20, 2023
sampled_from
(rather than to one_of
)?sampled_from
(rather than to one_of
)?
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 22, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 22, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 22, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 22, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 22, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 22, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 26, 2023
…ypothesisWorks#3819 Revised per suggestion here: HypothesisWorks#3820 (comment)
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 26, 2023
…ypothesisWorks#3819 Revised per suggestion here: HypothesisWorks#3820 (comment)
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 26, 2023
…ypothesisWorks#3819 Revised per suggestion here: HypothesisWorks#3820 (comment)
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 29, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Dec 31, 2023
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Jan 3, 2024
vreuter
added a commit
to vreuter/hypothesis
that referenced
this issue
Jan 3, 2024
Zac-HD
pushed a commit
to vreuter/hypothesis
that referenced
this issue
Jan 8, 2024
Zac-HD
pushed a commit
to vreuter/hypothesis
that referenced
this issue
Jan 8, 2024
…ypothesisWorks#3819 Revised per suggestion here: HypothesisWorks#3820 (comment)
Zac-HD
pushed a commit
to vreuter/hypothesis
that referenced
this issue
Jan 8, 2024
Zac-HD
pushed a commit
to vreuter/hypothesis
that referenced
this issue
Jan 8, 2024
Zac-HD
pushed a commit
to vreuter/hypothesis
that referenced
this issue
Jan 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was just making an error passing values of strategy type to the
elements
parameter ofsampled_from
when what I should've been using wasone_of
. This gave me some initially unexpected results, as I was dealing in the body of my test case with values of strategy type than rather than the values I expected to be generated from them.What do you think about a warning message or an error when passing strategies as elements to
sampled_from
? Naively, it seems like this would more often be in error (mis/incomplete understanding of the API, confusingsampled_from
andone_of
) than in intention.Regardless, thanks for a great library!
The text was updated successfully, but these errors were encountered: