Skip to content

Commit 69f52ed

Browse files
addisonlynchbashtage
authored andcommitted
Repaired FRED test (#559)
Simplify change so that it is robust to data revisions.
1 parent c36c8f0 commit 69f52ed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas_datareader/tests/test_fred.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ def test_fred(self):
2828
assert ts.index[-1] == pd.to_datetime("2013-01-01")
2929
assert ts.index.name == "DATE"
3030
assert ts.name == "GDP"
31-
32-
received = ts.tail(1)[0]
33-
assert int(received) == 16475
31+
assert len(ts) == 13
3432

3533
with pytest.raises(RemoteDataError):
3634
web.DataReader("NON EXISTENT SERIES", 'fred', start, end)

0 commit comments

Comments
 (0)