def test_can_trigger_error_in_draw_near_max_date(): assert_can_trigger_event( datetimes( min_value=dt.datetime.max - dt.timedelta(days=3), timezones=timezones() ), lambda event: "Failed to draw a datetime" in event, )
def test_can_trigger_error_in_draw_near_boundary(bound): assert_can_trigger_event( datetimes(**bound, timezones=timezones()), lambda event: "Failed to draw a datetime" in event, )