Skip to content
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

Allow @rule() xor @invariant() decorators on rule-based state machine methods. #2882

Merged
merged 1 commit into from
Mar 7, 2021

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Mar 1, 2021

In stateful testing, it doesn't make much sense to apply both these decorators, and if you did anyway there were weird interactions with preconditions. See #2861.

@Zac-HD Zac-HD added the legibility make errors helpful and Hypothesis grokable label Mar 1, 2021
@Zac-HD Zac-HD requested a review from Zalathar March 1, 2021 02:13
In stateful testing, it doesn't make much sense to apply both these decorators, and if you did anyway there were weird interactions with preconditions.
@sobolevn
Copy link
Member

sobolevn commented Mar 3, 2021

What is the proper place to discuss some crazy (I mean it!) stateful testing ideas I have? 🤔
It does not look like an issue and https://github.com/HypothesisWorks/hypothesis/blob/master/CONTRIBUTING.rst does not specify any alternatives.

@Zac-HD
Copy link
Member Author

Zac-HD commented Mar 3, 2021

An issue with the "opinions-sought" tag is probably our best option at the moment 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legibility make errors helpful and Hypothesis grokable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants