Skip to content

Commit 6f85da9

Browse files
author
Matthew Hall
committed
Add test for av-forex-daily.
1 parent 29063c6 commit 6f85da9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pandas_datareader/tests/av/test_av_time_series.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,17 @@ def test_av_intraday(self):
194194
assert len(df) > 1000
195195
assert "open" in df.columns
196196
assert "close" in df.columns
197+
198+
def test_av_forex_daily(self):
199+
df = web.DataReader(
200+
"USD/JPY",
201+
"av-forex-daily",
202+
start=self.start,
203+
end=self.end,
204+
retry_count=6,
205+
pause=20.5,
206+
)
207+
assert df.columns.equals(self.col_index[:4]) # No volume col for forex
208+
assert len(df) == 718
209+
assert df.loc["2015-02-09"]["close"] == 118.6390
210+
assert df.loc["2017-05-24"]["high"] == 112.1290

0 commit comments

Comments
 (0)