11
11
pytest .importorskip ("pandas" , minversion = "0.17.0" )
12
12
13
13
14
+ # 017
14
15
@pytest .mark .parametrize ("func" , [
15
16
'is_bool' , 'is_bool_dtype' ,
16
17
'is_categorical' , 'is_categorical_dtype' , 'is_complex' ,
24
25
'is_timedelta64_dtype' , 'is_timedelta64_ns_dtype' ,
25
26
'is_re' , 'is_re_compilable' ,
26
27
'is_iterator' ,
27
- 'is_list_like' , 'is_hashable' ])
28
+ 'is_list_like' , 'is_hashable' , 'infer_dtype' , 'is_scalar' ])
28
29
def test_introspection_017 (func ):
29
30
result = getattr (pdc , func )
30
31
assert result is not None
31
32
32
33
34
+ @pytest .mark .parametrize ("dtype" , [
35
+ 'CategoricalDtype' ,
36
+ 'DatetimeTZDtype' ])
37
+ def test_dtypes_017 (dtype ):
38
+ result = getattr (pdc , dtype )
39
+ assert result is not None
40
+
41
+
33
42
# 018
34
43
@pytest .mark .skipif (
35
44
pdc ._pd_version_under_018 , reason = 'pandas >= 0.18.0 required' )
@@ -45,8 +54,10 @@ def test_introspection_018(func):
45
54
@pytest .mark .skipif (
46
55
pdc ._pd_version_under_019 , reason = 'pandas >= 0.19.0 required' )
47
56
@pytest .mark .parametrize ("func" , [
48
- 'is_scalar' , 'is_file_like' , 'is_period' ,
49
- 'union_categoricals' , 'infer_dtype' ])
57
+ 'is_period' ,
58
+ 'union_categoricals' ,
59
+ 'hash_array' ,
60
+ 'hash_pandas_object' ])
50
61
def test_introspection_019 (func ):
51
62
result = getattr (pdc , func )
52
63
assert result is not None
@@ -56,25 +67,15 @@ def test_introspection_019(func):
56
67
@pytest .mark .skipif (
57
68
pdc ._pd_version_under_020 , reason = 'pandas >= 0.20.0 required' )
58
69
@pytest .mark .parametrize ("func" , [
59
- 'is_interval' , 'is_interval_dtype' , 'is_period_dtype' ,
70
+ 'is_interval' , 'is_file_like' , ' is_interval_dtype' , 'is_period_dtype' ,
60
71
'is_signed_integer_dtype' , 'is_unsigned_integer_dtype' ])
61
72
def test_introspection_020 (func ):
62
73
result = getattr (pdc , func )
63
74
assert result is not None
64
75
65
76
66
- # 017
67
- @pytest .mark .parametrize ("dtype" , [
68
- 'CategoricalDtype' ,
69
- 'DatetimeTZDtype' ])
70
- def test_dtypes_017 (dtype ):
71
- result = getattr (pdc , dtype )
72
- assert result is not None
73
-
74
-
75
- # 020
76
77
@pytest .mark .skipif (
77
- pdc ._pd_version_under_019 , reason = 'pandas >= 0.19 .0 required' )
78
+ pdc ._pd_version_under_020 , reason = 'pandas >= 0.20 .0 required' )
78
79
@pytest .mark .parametrize ("dtype" , [
79
80
'IntervalDtype' ,
80
81
'PeriodDtype' ])
0 commit comments