diff options
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -426,10 +426,10 @@ class TradeTest(unittest.TestCase): | |||
426 | market = mock.Mock() | 426 | market = mock.Mock() |
427 | market.fetch_ticker.side_effect = [ | 427 | market.fetch_ticker.side_effect = [ |
428 | { "bid": 1, "ask": 3 }, | 428 | { "bid": 1, "ask": 3 }, |
429 | portfolio.ccxt.ExchangeError("foo"), | 429 | portfolio.ExchangeError("foo"), |
430 | { "bid": 10, "ask": 40 }, | 430 | { "bid": 10, "ask": 40 }, |
431 | portfolio.ccxt.ExchangeError("foo"), | 431 | portfolio.ExchangeError("foo"), |
432 | portfolio.ccxt.ExchangeError("foo"), | 432 | portfolio.ExchangeError("foo"), |
433 | ] | 433 | ] |
434 | 434 | ||
435 | ticker = portfolio.Trade.get_ticker("ETH", "ETC", market) | 435 | ticker = portfolio.Trade.get_ticker("ETH", "ETC", market) |
@@ -606,7 +606,7 @@ class AcceptanceTest(unittest.TestCase): | |||
606 | "ask": D("0.0012") | 606 | "ask": D("0.0012") |
607 | } | 607 | } |
608 | if symbol == "USDT/BTC": | 608 | if symbol == "USDT/BTC": |
609 | raise portfolio.ccxt.ExchangeError | 609 | raise portfolio.ExchangeError |
610 | if symbol == "BTC/USDT": | 610 | if symbol == "BTC/USDT": |
611 | return { | 611 | return { |
612 | "symbol": "BTC/USDT", | 612 | "symbol": "BTC/USDT", |