Skip to content

Commit

Permalink
test: limit max examples in pytest settings to 10 for multiple test f…
Browse files Browse the repository at this point in the history
…unctions
  • Loading branch information
ericmjl committed Oct 8, 2023
1 parent 4ee8593 commit f773587
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/functions/test_conditional_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def test_dtype_category_non_equi():


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_single_condition_less_than_floats_keep_first(df, right):
"""Test output for a single condition. "<"."""
Expand Down Expand Up @@ -805,7 +805,7 @@ def test_single_condition_less_than_date(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_single_condition_less_than_date_numba(df, right):
"""Test output for a single condition. "<". Dates"""
Expand All @@ -832,7 +832,7 @@ def test_single_condition_less_than_date_numba(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_single_condition_greater_than_datetime(df, right):
"""Test output for a single condition. ">". Datetimes"""
Expand Down Expand Up @@ -1041,7 +1041,7 @@ def test_single_condition_greater_than_ints_extension_array(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_single_condition_greater_than_ints_extension_array_numba(df, right):
"""Test output for a single condition. ">"."""
Expand Down Expand Up @@ -2188,7 +2188,7 @@ def test_gt_ne_conditions(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_gt_ne_numba_conditions(df, right):
"""
Expand Down Expand Up @@ -2220,7 +2220,7 @@ def test_gt_ne_numba_conditions(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_le_ne_conditions(df, right):
"""
Expand Down Expand Up @@ -2251,7 +2251,7 @@ def test_le_ne_conditions(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_le_ne_numba_conditions(df, right):
"""
Expand Down Expand Up @@ -2746,7 +2746,7 @@ def test_ge_eq_and_multiple_le_numbers(df, right):
assert_frame_equal(expected, actual)


@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
@pytest.mark.turtle
def test_multiple_eqs_variant(df, right):
Expand Down Expand Up @@ -3035,7 +3035,7 @@ def test_ge_eq_and_le_numbers_numba(df, right):
assert_frame_equal(expected, actual)


@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
@pytest.mark.turtle
def test_ge_eq_and_le_integers_numba(df, right):
Expand Down Expand Up @@ -3099,7 +3099,7 @@ def test_ge_eq_and_lt_integers_numba(df, right):
assert_frame_equal(expected, actual)


@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
@pytest.mark.turtle
def test_gt_eq_integers_numba(df, right):
Expand Down Expand Up @@ -3270,7 +3270,7 @@ def test_ge_eq_and_le_dates_numba(df, right):
assert_frame_equal(expected, actual)


@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
@pytest.mark.turtle
def test_ge_eq_and_le_datess_numba(df, right):
Expand Down Expand Up @@ -3610,7 +3610,7 @@ def test_multiple_non_eq_numba(df, right):


@pytest.mark.turtle
@settings(deadline=None)
@settings(deadline=None, max_examples=10)
@given(df=conditional_df(), right=conditional_right())
def test_multiple_eqs(df, right):
"""Test output for multiple conditions."""
Expand Down

0 comments on commit f773587

Please sign in to comment.