Skip to content

Commit 5566561

Browse files
authored
TST: Fix EUROSTAT tests (#229)
1 parent 38ba60f commit 5566561

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pandas_datareader/tests/test_eurostat.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,17 @@ def test_get_sts_cobp_a(self):
5454
'Unadjusted data (i.e. neither seasonally adjusted nor calendar adjusted data)',
5555
'Non-residential buildings, except office buildings',
5656
'Netherlands', 'Annual')
57-
ne_values = [200.05, 186.46, 127.33, 130.67, 143.26, 147.83,
58-
176.69, 227.36, 199.45, 128.49, 100.0, 113.83, 89.33,
59-
77.57]
57+
ne_values = [200.0, 186.5, 127.3, 130.7, 143.3, 147.8, 176.7,
58+
227.4, 199.4, 128.5, 100.0, 113.8, 89.3, 77.6]
6059
ne = pd.Series(ne_values, name=ne_name, index=idx)
6160

6261
uk_name = ('Index, 2010=100',
6362
'Building permits - m2 of useful floor area',
6463
'Unadjusted data (i.e. neither seasonally adjusted nor calendar adjusted data)',
6564
'Non-residential buildings, except office buildings',
6665
'United Kingdom', 'Annual')
67-
uk_values = [112.53, 113.32, 110.18, 112.14, 119.06, 112.66,
68-
113.05, 121.8, 113.97, 105.88, 100.0, 98.56, 103.69,
69-
81.32]
66+
uk_values = [112.5, 113.3, 110.2, 112.1, 119.1, 112.7, 113.1,
67+
121.8, 114.0, 105.9, 100.0, 98.6, 103.7, 81.3]
7068
uk = pd.Series(uk_values, name=uk_name, index=idx)
7169

7270
for expected in [ne, uk]:
@@ -84,7 +82,7 @@ def test_get_nrg_pc_202(self):
8482
end=pd.Timestamp('2013-01-01'))
8583

8684
name = ('All taxes and levies included',
87-
'Gigajoules (Gross calorific value = GCV)',
85+
'Gigajoules (gross calorific value = GCV)',
8886
'Euro',
8987
'Band D1 : Consumption < 20 GJ',
9088
'Natural gas', 'Denmark', 'Semi-annual')
@@ -95,6 +93,7 @@ def test_get_nrg_pc_202(self):
9593
exp = pd.Series([27.1403, 27.5854, 26.5285, 27.2187,
9694
28.5862, 28.6448, 26.8147, 26.4979],
9795
index=exp_index, name=name)
96+
9897
tm.assert_series_equal(df[name], exp)
9998

10099
def test_get_prc_hicp_manr_exceeds_limit(self):

0 commit comments

Comments
 (0)