16
16
import pandas .util .testing as tm
17
17
from pandas .util .testing import assert_series_equal
18
18
19
+ pytestmark = pytest .mark .filterwarnings (
20
+ 'ignore::pandas_datareader.exceptions.UnstableAPIWarning' )
21
+
19
22
20
23
def assert_n_failed_equals_n_null_columns (wngs , obj , cls = SymbolWarning ):
21
24
all_nan_cols_dict = {}
@@ -64,8 +67,8 @@ def test_google(self):
64
67
end = datetime (2013 , 1 , 27 )
65
68
for locale in self .locales :
66
69
with tm .set_locale (locale ):
67
- panel = web .DataReader ("NYSE:F" , 'google' , start , end )
68
- assert panel .Close [- 1 ] == 13.68
70
+ panel = web .DataReader ("NYSE:F" , 'google' , start , end )
71
+ assert panel .Close [- 1 ] == 13.68
69
72
70
73
with pytest .raises (Exception ):
71
74
web .DataReader ('NON EXISTENT TICKER' , 'google' , start , end )
@@ -153,9 +156,9 @@ def test_get_multi2(self):
153
156
def test_dtypes (self ):
154
157
# see gh-3995, gh-8980
155
158
data = web .get_data_google (
156
- 'NYSE:F' ,
157
- start = 'JAN-01-10' ,
158
- end = 'JAN-27-13' )
159
+ 'NYSE:F' ,
160
+ start = 'JAN-01-10' ,
161
+ end = 'JAN-27-13' )
159
162
assert np .issubdtype (data .Open .dtype , np .number )
160
163
assert np .issubdtype (data .Close .dtype , np .number )
161
164
assert np .issubdtype (data .Low .dtype , np .number )
@@ -167,9 +170,9 @@ def test_unicode_date(self):
167
170
# see gh-8967
168
171
169
172
data = web .get_data_google (
170
- 'NYSE:F' ,
171
- start = 'JAN-01-10' ,
172
- end = 'JAN-27-13' )
173
+ 'NYSE:F' ,
174
+ start = 'JAN-01-10' ,
175
+ end = 'JAN-27-13' )
173
176
assert data .index .name == 'Date'
174
177
175
178
@skip_on_exception (RemoteDataError )
0 commit comments