Skip to content

Commit

Permalink
Fix 2x old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider committed Aug 22, 2024
1 parent ce9becd commit a2b5d6b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,8 @@ def test_intraDayWithEvents(self):
if df_daily_divs.shape[0] == 0:
continue

last_div_date = df_daily_divs.index[-1]
start_d = last_div_date.date()
end_d = last_div_date.date() + _dt.timedelta(days=1)
start_d = df_daily_divs.index[0].date()
end_d = df_daily_divs.index[-1].date() + _dt.timedelta(days=1)
df_intraday = yf.Ticker(tkr, session=self.session).history(start=start_d, end=end_d, interval="15m", actions=True)
self.assertTrue((df_intraday["Dividends"] != 0.0).any())

Expand All @@ -206,9 +205,8 @@ def test_intraDayWithEvents_tase(self):
if df_daily_divs.shape[0] == 0:
continue

last_div_date = df_daily_divs.index[-1]
start_d = last_div_date.date()
end_d = last_div_date.date() + _dt.timedelta(days=1)
start_d = df_daily_divs.index[0].date()
end_d = df_daily_divs.index[-1].date() + _dt.timedelta(days=1)
df_intraday = yf.Ticker(tkr, session=self.session).history(start=start_d, end=end_d, interval="15m", actions=True)
self.assertTrue((df_intraday["Dividends"] != 0.0).any())

Expand Down

0 comments on commit a2b5d6b

Please sign in to comment.