Skip to content

Commit dc4c3b0

Browse files
addisonlynchbashtage
authored andcommitted
Repaired Yahoo actions tests (#556)
1 parent df98a72 commit dc4c3b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas_datareader/tests/yahoo/test_yahoo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ def test_get_data_yahoo_actions(self):
203203

204204
actions = web.get_data_yahoo_actions('BHP.AX', start, end)
205205

206-
assert sum(actions['action'] == 'DIVIDEND') == 20
206+
assert sum(actions['action'] == 'DIVIDEND') == 21
207207
assert sum(actions['action'] == 'SPLIT') == 1
208208

209209
assert actions.loc['1995-05-11', 'action'][0] == 'SPLIT'
210210
assert actions.loc['1995-05-11', 'value'][0] == 1 / 1.1
211211

212212
assert actions.loc['1993-05-10', 'action'][0] == 'DIVIDEND'
213-
assert actions.loc['1993-05-10', 'value'][0] == 0.3
213+
assert actions.loc['1993-05-10', 'value'][0] == 0.21
214214

215215
def test_get_data_yahoo_actions_invalid_symbol(self):
216216
start = datetime(1990, 1, 1)

0 commit comments

Comments
 (0)