Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TST] Compat with macos and window, FailedHealthCheck #1189

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/functions/test_case_when.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def test_case_when_replacement_callable(df):


@given(df=categoricaldf_strategy())
@settings(deadline=None)
def test_case_when_default_array(df):
"""
Test case_when for scenarios where `default` is array-like
Expand All @@ -183,6 +184,7 @@ def test_case_when_default_array(df):


@given(df=categoricaldf_strategy())
@settings(deadline=None)
def test_case_when_default_list_like(df):
"""
Test case_when for scenarios where `default` is list-like,
Expand All @@ -201,6 +203,7 @@ def test_case_when_default_list_like(df):


@given(df=categoricaldf_strategy())
@settings(deadline=None)
def test_case_when_default_index(df):
"""
Test case_when for scenarios where `default` is an index.
Expand Down
3 changes: 3 additions & 0 deletions tests/functions/test_encode_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def test_empty_col_sort(df):

@pytest.mark.functions
@given(df=df_strategy())
@settings(deadline=None)
def test_empty_col_appearance(df):
"""
Raise ValueError if a string is provided,
Expand All @@ -257,6 +258,7 @@ def test_empty_col_appearance(df):

@pytest.mark.functions
@given(df=categoricaldf_strategy())
@settings(deadline=None)
def test_all_None(df):
"""
Test output where value is None.
Expand All @@ -269,6 +271,7 @@ def test_all_None(df):

@pytest.mark.functions
@given(df=categoricaldf_strategy())
@settings(deadline=None)
def test_all_cat_None_1(df):
"""
Test output where a string is provided.
Expand Down
2 changes: 2 additions & 0 deletions tests/functions/test_expand_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


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


@given(df=df_strategy())
@settings(deadline=None)
def test_df_key(df):
"""Raise error if df exists and df_key is not supplied."""
with pytest.raises(KeyError):
Expand Down
2 changes: 2 additions & 0 deletions tests/math/test_ecdf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import numpy as np
import pytest
from hypothesis import given
from hypothesis import settings
from hypothesis.extra.pandas import series


@given(s=series(dtype=np.number))
@settings(deadline=None)
def test_ecdf(s):
"""A simple execution test."""
if s.isna().sum() > 0:
Expand Down