Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
Fix trading tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbbraun committed Feb 11, 2017
1 parent 8a2aa1b commit 356e62b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions trading_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ def test_get_historical_prices(trading):

def test_get_day_quotes(trading):
quotes = trading.get_day_quotes(
"NYT", as_market_time(2017, 2, 6, 11, 32, 0))
assert len(quotes) == 367
"BA", as_market_time(2016, 12, 22, 17, 26, 0))
assert len(quotes) == 395
assert quotes[0] == {
"price": 14.25, "time": as_market_time(2017, 2, 6, 9, 30, 0)}
"price": 158.73, "time": as_market_time(2016, 12, 22, 9, 3, 0)}
assert quotes[-1] == {
"price": 14.5, "time": as_market_time(2017, 2, 6, 16, 5, 0)}
"price": 157.46, "time": as_market_time(2016, 12, 22, 16, 30, 0)}


def test_is_trading_day(trading):
Expand Down

0 comments on commit 356e62b

Please sign in to comment.