diff options
Diffstat (limited to 'tests/test_portfolio.py')
-rw-r--r-- | tests/test_portfolio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_portfolio.py b/tests/test_portfolio.py index cad3095..f2f6394 100644 --- a/tests/test_portfolio.py +++ b/tests/test_portfolio.py | |||
@@ -1361,7 +1361,7 @@ class OrderTest(WebMockTestCase): | |||
1361 | with self.subTest(similar_open_order=True): | 1361 | with self.subTest(similar_open_order=True): |
1362 | order = portfolio.Order("buy", portfolio.Amount("ETH", "0.001"), | 1362 | order = portfolio.Order("buy", portfolio.Amount("ETH", "0.001"), |
1363 | D("0.1"), "BTC", "long", self.m, "trade") | 1363 | D("0.1"), "BTC", "long", self.m, "trade") |
1364 | order.start_date = datetime.datetime(2018, 3, 25, 15, 15, 55) | 1364 | order.start_date = datetime.datetime(2018, 3, 25, 15, 15, 55, 0, tz(2)) |
1365 | 1365 | ||
1366 | self.m.ccxt.order_precision.return_value = 8 | 1366 | self.m.ccxt.order_precision.return_value = 8 |
1367 | self.m.ccxt.fetch_orders.return_value = [ | 1367 | self.m.ccxt.fetch_orders.return_value = [ |
@@ -1471,7 +1471,7 @@ class OrderTest(WebMockTestCase): | |||
1471 | with self.subTest(similar_open_order=False, past_trades=True): | 1471 | with self.subTest(similar_open_order=False, past_trades=True): |
1472 | order = portfolio.Order("buy", portfolio.Amount("ETH", "0.001"), | 1472 | order = portfolio.Order("buy", portfolio.Amount("ETH", "0.001"), |
1473 | D("0.1"), "BTC", "long", self.m, "trade") | 1473 | D("0.1"), "BTC", "long", self.m, "trade") |
1474 | order.start_date = datetime.datetime(2018, 3, 25, 15, 15, 55) | 1474 | order.start_date = datetime.datetime(2018, 3, 25, 15, 15, 55, 0, tz(2)) |
1475 | 1475 | ||
1476 | self.m.ccxt.order_precision.return_value = 8 | 1476 | self.m.ccxt.order_precision.return_value = 8 |
1477 | self.m.ccxt.fetch_orders.return_value = [] | 1477 | self.m.ccxt.fetch_orders.return_value = [] |