|
1 | 1 | from datetime import datetime |
2 | | -from pandas_datareader._utils import RemoteDataError |
3 | 2 |
|
4 | | -import pytest |
5 | 3 | import numpy as np |
6 | 4 | import pandas as pd |
7 | 5 | import pandas.util.testing as tm |
| 6 | +import pytest |
| 7 | + |
8 | 8 | import pandas_datareader.data as web |
| 9 | +from pandas_datareader._utils import RemoteDataError |
9 | 10 |
|
10 | 11 |
|
11 | 12 | class TestOECD(object): |
12 | 13 |
|
13 | 14 | @pytest.mark.xfail(reason='Incorrect URL') |
14 | 15 | def test_get_un_den(self): |
15 | | - df = web.DataReader('UN_DEN', 'oecd', start=datetime(1960, 1, 1), |
| 16 | + df = web.DataReader('NAAG', 'oecd', start=datetime(1960, 1, 1), |
16 | 17 | end=datetime(2012, 1, 1)) |
17 | 18 |
|
18 | 19 | au = [50.17292785, 49.47181009, 49.52106174, 49.16341327, |
@@ -65,14 +66,13 @@ def test_get_un_den(self): |
65 | 66 | expected = pd.Series(values, index=index, name=label) |
66 | 67 | tm.assert_series_equal(df[label], expected) |
67 | 68 |
|
68 | | - @pytest.mark.xfail(reason='Incorrect URL') |
69 | 69 | def test_get_tourism(self): |
70 | 70 | df = web.DataReader('TOURISM_INBOUND', 'oecd', |
71 | 71 | start=datetime(2008, 1, 1), |
72 | 72 | end=datetime(2012, 1, 1)) |
73 | 73 |
|
74 | 74 | jp = np.array([8351000, 6790000, 8611000, 6219000, |
75 | | - 8368000], dtype=float) |
| 75 | + 8368000], dtype=float) |
76 | 76 | us = np.array([175702309, 160507417, 164079732, 167600277, |
77 | 77 | 171320408], dtype=float) |
78 | 78 | index = pd.date_range('2008-01-01', '2012-01-01', freq='AS', |
|
0 commit comments