Skip to content

Commit 018b0c9

Browse files
Zeroto521samukweku
authored andcommitted
[TST] Compat with macos and window, FailedHealthCheck (#1189)
* fix `hypothesis.errors.FailedHealthCheck` * fix `hypothesis.errors.FailedHealthCheck` * fix `hypothesis.errors.FailedHealthCheck` * fix `hypothesis.errors.FailedHealthCheck` * fix `hypothesis.errors.FailedHealthCheck`
1 parent 08fe78c commit 018b0c9

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

tests/functions/test_case_when.py

+3
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def test_case_when_replacement_callable(df):
166166

167167

168168
@given(df=categoricaldf_strategy())
169+
@settings(deadline=None)
169170
def test_case_when_default_array(df):
170171
"""
171172
Test case_when for scenarios where `default` is array-like
@@ -183,6 +184,7 @@ def test_case_when_default_array(df):
183184

184185

185186
@given(df=categoricaldf_strategy())
187+
@settings(deadline=None)
186188
def test_case_when_default_list_like(df):
187189
"""
188190
Test case_when for scenarios where `default` is list-like,
@@ -201,6 +203,7 @@ def test_case_when_default_list_like(df):
201203

202204

203205
@given(df=categoricaldf_strategy())
206+
@settings(deadline=None)
204207
def test_case_when_default_index(df):
205208
"""
206209
Test case_when for scenarios where `default` is an index.

tests/functions/test_encode_categorical.py

+3
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def test_empty_col_sort(df):
234234

235235
@pytest.mark.functions
236236
@given(df=df_strategy())
237+
@settings(deadline=None)
237238
def test_empty_col_appearance(df):
238239
"""
239240
Raise ValueError if a string is provided,
@@ -257,6 +258,7 @@ def test_empty_col_appearance(df):
257258

258259
@pytest.mark.functions
259260
@given(df=categoricaldf_strategy())
261+
@settings(deadline=None)
260262
def test_all_None(df):
261263
"""
262264
Test output where value is None.
@@ -269,6 +271,7 @@ def test_all_None(df):
269271

270272
@pytest.mark.functions
271273
@given(df=categoricaldf_strategy())
274+
@settings(deadline=None)
272275
def test_all_cat_None_1(df):
273276
"""
274277
Test output where a string is provided.

tests/functions/test_expand_grid.py

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414

1515
@given(df=df_strategy())
16+
@settings(deadline=None)
1617
def test_others_not_dict(df):
1718
"""Raise Error if `others` is not a dictionary."""
1819
with pytest.raises(TypeError):
@@ -32,6 +33,7 @@ def test_others_empty():
3233

3334

3435
@given(df=df_strategy())
36+
@settings(deadline=None)
3537
def test_df_key(df):
3638
"""Raise error if df exists and df_key is not supplied."""
3739
with pytest.raises(KeyError):

tests/math/test_ecdf.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import numpy as np
22
import pytest
33
from hypothesis import given
4+
from hypothesis import settings
45
from hypothesis.extra.pandas import series
56

67

78
@given(s=series(dtype=np.number))
9+
@settings(deadline=None)
810
def test_ecdf(s):
911
"""A simple execution test."""
1012
if s.isna().sum() > 0:

0 commit comments

Comments
 (0)