File tree 4 files changed +10
-0
lines changed
4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ def test_case_when_replacement_callable(df):
166
166
167
167
168
168
@given (df = categoricaldf_strategy ())
169
+ @settings (deadline = None )
169
170
def test_case_when_default_array (df ):
170
171
"""
171
172
Test case_when for scenarios where `default` is array-like
@@ -183,6 +184,7 @@ def test_case_when_default_array(df):
183
184
184
185
185
186
@given (df = categoricaldf_strategy ())
187
+ @settings (deadline = None )
186
188
def test_case_when_default_list_like (df ):
187
189
"""
188
190
Test case_when for scenarios where `default` is list-like,
@@ -201,6 +203,7 @@ def test_case_when_default_list_like(df):
201
203
202
204
203
205
@given (df = categoricaldf_strategy ())
206
+ @settings (deadline = None )
204
207
def test_case_when_default_index (df ):
205
208
"""
206
209
Test case_when for scenarios where `default` is an index.
Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ def test_empty_col_sort(df):
234
234
235
235
@pytest .mark .functions
236
236
@given (df = df_strategy ())
237
+ @settings (deadline = None )
237
238
def test_empty_col_appearance (df ):
238
239
"""
239
240
Raise ValueError if a string is provided,
@@ -257,6 +258,7 @@ def test_empty_col_appearance(df):
257
258
258
259
@pytest .mark .functions
259
260
@given (df = categoricaldf_strategy ())
261
+ @settings (deadline = None )
260
262
def test_all_None (df ):
261
263
"""
262
264
Test output where value is None.
@@ -269,6 +271,7 @@ def test_all_None(df):
269
271
270
272
@pytest .mark .functions
271
273
@given (df = categoricaldf_strategy ())
274
+ @settings (deadline = None )
272
275
def test_all_cat_None_1 (df ):
273
276
"""
274
277
Test output where a string is provided.
Original file line number Diff line number Diff line change 13
13
14
14
15
15
@given (df = df_strategy ())
16
+ @settings (deadline = None )
16
17
def test_others_not_dict (df ):
17
18
"""Raise Error if `others` is not a dictionary."""
18
19
with pytest .raises (TypeError ):
@@ -32,6 +33,7 @@ def test_others_empty():
32
33
33
34
34
35
@given (df = df_strategy ())
36
+ @settings (deadline = None )
35
37
def test_df_key (df ):
36
38
"""Raise error if df exists and df_key is not supplied."""
37
39
with pytest .raises (KeyError ):
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
import pytest
3
3
from hypothesis import given
4
+ from hypothesis import settings
4
5
from hypothesis .extra .pandas import series
5
6
6
7
7
8
@given (s = series (dtype = np .number ))
9
+ @settings (deadline = None )
8
10
def test_ecdf (s ):
9
11
"""A simple execution test."""
10
12
if s .isna ().sum () > 0 :
You can’t perform that action at this time.
0 commit comments