Skip to content

Commit

Permalink
add forced draw in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Apr 27, 2024
1 parent 4041696 commit 7e36ca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hypothesis-python/tests/conjecture/test_data_tree.py
Expand Up @@ -593,6 +593,7 @@ def test_datatree_repr(bool_kwargs, int_kwargs):
observer = tree.new_observer()
observer.draw_boolean(False, was_forced=False, kwargs=bool_kwargs)
observer.draw_integer(0, was_forced=False, kwargs=int_kwargs)
observer.draw_boolean(False, was_forced=True, kwargs=bool_kwargs)
observer.conclude_test(Status.INTERESTING, interesting_origin=origin)

assert (
Expand All @@ -605,7 +606,8 @@ def test_datatree_repr(bool_kwargs, int_kwargs):
integer 42 {int_kwargs}
Conclusion (Status.VALID)
integer 0 {int_kwargs}
Conclusion (Status.INTERESTING, {origin})
boolean False [forced] {bool_kwargs}
Conclusion (Status.INTERESTING, {origin})
"""
).strip()
)

0 comments on commit 7e36ca8

Please sign in to comment.