we can use @example for a normal test as following:
@given(text())
@example("Hello world")
@example(x="Some very long string")
def test_some_code(x):
pass
but how to reproduce failures for RuleBasedStateMachine with @example?
we can use @example for a normal test as following:
@given(text())
@example("Hello world")
@example(x="Some very long string")
def test_some_code(x):
pass
but how to reproduce failures for RuleBasedStateMachine with @example?
Unfortunately there is no equivalent to
@example()forRuleBasedStateMachine- instead, we recommend writing specific cases as traditional unit tests.