Skip to content

Commit b9f809f

Browse files
authored
Merge pull request #592 from corakwue/patch-2
ENH: Update stooq test to include index
2 parents 4a5ff56 + c40c06a commit b9f809f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pandas_datareader/tests/test_stooq.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,22 @@ def test_get_data_stooq_dji():
1515
def test_get_data_stooq_dates():
1616
f = get_data_stooq('SPY', start='20180101', end='20180115')
1717
assert f.shape[0] == 9
18+
19+
20+
def test_stooq_sp500():
21+
f = get_data_stooq('^SPX')
22+
assert f.shape[0] > 0
23+
24+
25+
def test_get_data_stooq_dax():
26+
f = get_data_stooq('^DAX')
27+
assert f.shape[0] > 0
28+
29+
def test_stooq_googl():
30+
f = get_data_stooq('GOOGL.US')
31+
assert f.shape[0] > 0
32+
33+
34+
def test_get_data_ibm():
35+
f = get_data_stooq('IBM.UK')
36+
assert f.shape[0] > 0

0 commit comments

Comments
 (0)