Skip to content

Commit

Permalink
Update Polars dtype test to generate more examples (#1770)
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <[email protected]>
  • Loading branch information
deepyaman authored Aug 16, 2024
1 parent 2a9d045 commit 13bb3ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/polars/test_polars_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def get_dataframe_strategy(type_: pl.DataType) -> st.SearchStrategy:
cols=2,
lazy=True,
allowed_dtypes=type_,
include_nulls=0.1,
min_size=10,
max_size=10,
)
Expand All @@ -92,7 +91,7 @@ def get_dataframe_strategy(type_: pl.DataType) -> st.SearchStrategy:
# Hypothesis slow if test is failing
@pytest.mark.parametrize("dtype", all_types)
@given(st.data())
@settings(max_examples=1)
@settings(max_examples=10)
def test_coerce_no_cast(dtype, data):
"""Test that dtypes can be coerced without casting."""
if dtype is pe.Categorical:
Expand Down

0 comments on commit 13bb3ce

Please sign in to comment.