diff --git a/tests/functions/test_conditional_join.py b/tests/functions/test_conditional_join.py index 8c5bd1499..b0c2596c3 100644 --- a/tests/functions/test_conditional_join.py +++ b/tests/functions/test_conditional_join.py @@ -251,7 +251,7 @@ def test_check_use_numba_equi_join(dummy): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_check_use_numba_equi_join_no_le_or_ge(df, right): """ @@ -390,7 +390,7 @@ def test_single_condition_less_than_floats_keep_first(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_floats_keep_last(df, right): """Test output for a single condition. "<".""" @@ -422,7 +422,7 @@ def test_single_condition_less_than_floats_keep_last(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_floats(df, right): """Test output for a single condition. "<".""" @@ -447,8 +447,8 @@ def test_single_condition_less_than_floats(df, right): assert_frame_equal(expected, actual) -@settings(deadline=None) @pytest.mark.turtle +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_single_condition_less_than_floats_keep_first_numba(df, right): """Test output for a single condition. "<".""" @@ -480,7 +480,7 @@ def test_single_condition_less_than_floats_keep_first_numba(df, right): assert_frame_equal(expected, actual) -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @pytest.mark.turtle @given(df=conditional_df(), right=conditional_right()) def test_single_condition_less_than_floats_keep_last_numba(df, right): @@ -515,7 +515,7 @@ def test_single_condition_less_than_floats_keep_last_numba(df, right): assert_frame_equal(expected, actual) -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @pytest.mark.turtle @given(df=conditional_df(), right=conditional_right()) def test_single_condition_less_than_ints_extension_array_numba_first_match( @@ -594,7 +594,7 @@ def test_single_condition_less_than_ints_extension_array_numba_last_match( @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_ints(df, right): """Test output for a single condition. "<".""" @@ -621,7 +621,7 @@ def test_single_condition_less_than_ints(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_ints_numba(df, right): """Test output for a single condition. "<".""" @@ -649,7 +649,7 @@ def test_single_condition_less_than_ints_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_less_than_ints_extension_array(df, right): """Test output for a single condition. "<".""" @@ -680,7 +680,7 @@ def test_single_condition_less_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_less_than_ints_extension_array_numba(df, right): """Test output for a single condition. "<".""" @@ -745,7 +745,7 @@ def test_single_condition_less_than_equal(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_equal_numba(df, right): """Test output for a single condition. "<=". DateTimes""" @@ -779,7 +779,7 @@ def test_single_condition_less_than_equal_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_less_than_date(df, right): """Test output for a single condition. "<". Dates""" @@ -858,7 +858,7 @@ def test_single_condition_greater_than_datetime(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_numba(df, right): """Test output for a single condition. ">". Datetimes""" @@ -885,7 +885,7 @@ def test_single_condition_greater_than_datetime_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_ints(df, right): """Test output for a single condition. ">=".""" @@ -947,7 +947,7 @@ def test_single_condition_greater_than_ints_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_floats_floats(df, right): """Test output for a single condition. ">".""" @@ -1012,7 +1012,7 @@ def test_single_condition_greater_than_floats_floats_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_ints_extension_array(df, right): """Test output for a single condition. ">".""" @@ -1071,7 +1071,7 @@ def test_single_condition_greater_than_ints_extension_array_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_not_equal_ints(df, right): """Test output for a single condition. "!=".""" @@ -1098,7 +1098,7 @@ def test_single_condition_not_equal_ints(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_not_equal_ints_numba(df, right): """Test output for a single condition. "!=".""" @@ -1126,7 +1126,7 @@ def test_single_condition_not_equal_ints_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_not_equal_floats_only(df, right): """Test output for a single condition. "!=".""" @@ -1154,7 +1154,7 @@ def test_single_condition_not_equal_floats_only(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_not_equal_floats_only_numba(df, right): """Test output for a single condition. "!=".""" @@ -1188,7 +1188,7 @@ def test_single_condition_not_equal_floats_only_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_not_equal_datetime(df, right): """Test output for a single condition. "!=".""" @@ -1216,7 +1216,7 @@ def test_single_condition_not_equal_datetime(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_not_equal_datetime_numba(df, right): """Test output for a single condition. "!=".""" @@ -1250,7 +1250,7 @@ def test_single_condition_not_equal_datetime_numba(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_how_left(df, right): """Test output when `how==left`. "<=".""" @@ -1335,7 +1335,7 @@ def test_how_left_multiindex(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_how_left_sort(df, right): """Test output when `how==left`. "<=".""" @@ -1451,7 +1451,7 @@ def test_how_right_sort(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_gt_and_lt_dates(df, right): """Test output for interval conditions.""" @@ -1483,7 +1483,7 @@ def test_dual_conditions_gt_and_lt_dates(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_dual_conditions_ge_and_le_dates(df, right): @@ -1513,7 +1513,7 @@ def test_dual_conditions_ge_and_le_dates(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_dual_conditions_le_and_ge_dates(df, right): @@ -1543,7 +1543,7 @@ def test_dual_conditions_le_and_ge_dates(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_ge_and_le_dates_right_open(df, right): """Test output for interval conditions.""" @@ -1575,7 +1575,7 @@ def test_dual_conditions_ge_and_le_dates_right_open(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_ge_and_le_numbers(df, right): """Test output for interval conditions, for numeric dtypes.""" @@ -1602,7 +1602,7 @@ def test_dual_conditions_ge_and_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_dual_conditions_le_and_ge_numbers(df, right): @@ -1635,7 +1635,7 @@ def test_dual_conditions_le_and_ge_numbers(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_gt_and_lt_numbers(df, right): """Test output for interval conditions.""" @@ -1664,7 +1664,7 @@ def test_dual_conditions_gt_and_lt_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_dual_conditions_gt_and_lt_numbers_left_open(df, right): @@ -1693,7 +1693,7 @@ def test_dual_conditions_gt_and_lt_numbers_left_open(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_gt_and_lt_numbers_(df, right): """ @@ -1771,7 +1771,7 @@ def test_dual_conditions_gt_and_lt_numbers_left_join(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_gt_and_lt_numbers_right_join(df, right): """ @@ -1955,7 +1955,7 @@ def test_dual_ne_dates(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ne_numba_dates(df, right): """ @@ -1986,7 +1986,7 @@ def test_dual_ne_numba_dates(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_ne_dates(df, right): @@ -2023,7 +2023,7 @@ def test_multiple_ne_dates(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_eq_and_ne(df, right): """Test output for equal and not equal conditions.""" @@ -2055,7 +2055,7 @@ def test_dual_conditions_eq_and_ne(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_conditions_ne_and_eq(df, right): """Test output for equal and not equal conditions.""" @@ -2083,7 +2083,7 @@ def test_dual_conditions_ne_and_eq(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_lt_ne_conditions(df, right): @@ -2119,7 +2119,7 @@ def test_gt_lt_ne_conditions(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_lt_ne_numba_conditions(df, right): @@ -2157,7 +2157,7 @@ def test_gt_lt_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_gt_ne_conditions(df, right): """ @@ -2282,7 +2282,7 @@ def test_le_ne_numba_conditions(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_lt_ne_start(df, right): @@ -2355,7 +2355,7 @@ def test_ge_le_ne_extension_array(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_le_ne_extension_array_numba(df, right): @@ -2394,7 +2394,7 @@ def test_ge_le_ne_extension_array_numba(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_ge_lt_ne_extension(df, right): """ @@ -2473,7 +2473,7 @@ def test_ge_lt_ne_numba_extension(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_eq_ge_and_le_numbers(df, right): """Test output for multiple conditions.""" @@ -2504,7 +2504,7 @@ def test_eq_ge_and_le_numbers(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ge_and_le_diff_numbers_numba(df, right): """Test output for multiple conditions.""" @@ -2536,7 +2536,7 @@ def test_dual_ge_and_le_diff_numbers_numba(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ge_and_le_diff_numbers(df, right): """Test output for multiple conditions.""" @@ -2567,7 +2567,7 @@ def test_dual_ge_and_le_diff_numbers(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_ge_lt_ne_extension_variant(df, right): """ @@ -2604,7 +2604,7 @@ def test_ge_lt_ne_extension_variant(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_ge_lt_ne_extension_variant_numba(df, right): """ @@ -2642,7 +2642,7 @@ def test_ge_lt_ne_extension_variant_numba(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_ge_eq_and_le_numbers_variant(df, right): """Test output for multiple conditions.""" @@ -2782,7 +2782,7 @@ def test_multiple_eqs_variant(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ge_and_le_range_numbers(df, right): """Test output for multiple conditions.""" @@ -2813,7 +2813,7 @@ def test_dual_ge_and_le_range_numbers(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ge_and_le_range_numbers_numba(df, right): """Test output for multiple conditions.""" @@ -2845,7 +2845,7 @@ def test_dual_ge_and_le_range_numbers_numba(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ge_and_le_range_numbers_df_columns_only(df, right): """Test output for multiple conditions and select df only.""" @@ -2878,7 +2878,7 @@ def test_dual_ge_and_le_range_numbers_df_columns_only(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_dual_ge_and_le_range_numbers_right_only(df, right): """Test output for multiple conditions and select right only.""" @@ -2909,7 +2909,7 @@ def test_dual_ge_and_le_range_numbers_right_only(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_numbers(df, right): @@ -2940,7 +2940,7 @@ def test_ge_eq_and_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_ge_eq_and_le_numbers_force(df, right): @@ -2972,7 +2972,7 @@ def test_ge_eq_and_le_numbers_force(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_numbers_variant_numba(df, right): @@ -3003,7 +3003,7 @@ def test_ge_eq_and_le_numbers_variant_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_numbers_numba(df, right): @@ -3067,7 +3067,7 @@ def test_ge_eq_and_le_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_ge_eq_and_lt_integers_numba(df, right): @@ -3130,7 +3130,7 @@ def test_gt_eq_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_dates_numba(df, right): @@ -3166,7 +3166,7 @@ def test_gt_eq_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_lt_eq_integers_numba(df, right): @@ -3233,7 +3233,7 @@ def test_lt_eq_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_dates_numba(df, right): @@ -3314,7 +3314,7 @@ def test_ge_eq_and_le_datess_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_non_equi(df, right): """Test output for multiple conditions.""" @@ -3350,7 +3350,7 @@ def test_multiple_non_equi(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_non_equii(df, right): @@ -3390,7 +3390,7 @@ def test_multiple_non_equii(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_non_equii_col_syntax(df, right): @@ -3431,7 +3431,7 @@ def test_multiple_non_equii_col_syntax(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_multiple_non_eqi(df, right): """Test output for multiple conditions.""" @@ -3478,7 +3478,7 @@ def test_multiple_non_eqi(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_multiple_non_eqi_numba(df, right): """Test output for multiple conditions.""" @@ -3526,7 +3526,7 @@ def test_multiple_non_eqi_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_non_eq(df, right): """Test output for multiple conditions.""" @@ -3563,7 +3563,7 @@ def test_multiple_non_eq(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_multiple_non_eq_numba(df, right): """Test output for multiple conditions.""" @@ -3645,7 +3645,7 @@ def test_multiple_eqs(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_outer(df, right): """Test output for multiple conditions.""" @@ -3700,7 +3700,7 @@ def test_multiple_eqs_outer(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_col_syntax(df, right): """Test output for multiple conditions.""" @@ -3735,7 +3735,7 @@ def test_multiple_eqs_col_syntax(df, right): @pytest.mark.turtle -@settings(deadline=None) +@settings(deadline=None, max_examples=10) @given(df=conditional_df(), right=conditional_right()) def test_eq_strings(df, right): """Test output for joins on strings."""