Source code for schrodinger.test.hypothesis.utils
from hypothesis.stateful import precondition
[docs]def skip_rule(reason=None):
"""
Custom precondition to skip rules in Hypothesis stateful tests
Example::
@skip_rule("Fix in PANEL-XXXXX")
@precondition(lambda self: len(self.items) > 1)
@rule()
def sumItems(self):
pass
"""
return precondition(lambda self: False)