diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-01-24 15:50:59 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-01-25 23:59:13 +0100 |
commit | e0b14bcc15b5ce397733c2a965917ce17dd935b3 (patch) | |
tree | 5ddb3b146d6cd3a7e7f1ec7c6a9f344bb6b4bb0e /test.py | |
parent | e2c6184cdf2c4a9f9bc809088056cc365d243b13 (diff) | |
download | Trader-e0b14bcc15b5ce397733c2a965917ce17dd935b3.tar.gz Trader-e0b14bcc15b5ce397733c2a965917ce17dd935b3.tar.zst Trader-e0b14bcc15b5ce397733c2a965917ce17dd935b3.zip |
Remove unnecessary dependency on ccxt
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", |