From e0b14bcc15b5ce397733c2a965917ce17dd935b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 24 Jan 2018 15:50:59 +0100 Subject: Remove unnecessary dependency on ccxt --- test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 1b8a109..daf5fe4 100644 --- a/test.py +++ b/test.py @@ -426,10 +426,10 @@ class TradeTest(unittest.TestCase): market = mock.Mock() market.fetch_ticker.side_effect = [ { "bid": 1, "ask": 3 }, - portfolio.ccxt.ExchangeError("foo"), + portfolio.ExchangeError("foo"), { "bid": 10, "ask": 40 }, - portfolio.ccxt.ExchangeError("foo"), - portfolio.ccxt.ExchangeError("foo"), + portfolio.ExchangeError("foo"), + portfolio.ExchangeError("foo"), ] ticker = portfolio.Trade.get_ticker("ETH", "ETC", market) @@ -606,7 +606,7 @@ class AcceptanceTest(unittest.TestCase): "ask": D("0.0012") } if symbol == "USDT/BTC": - raise portfolio.ccxt.ExchangeError + raise portfolio.ExchangeError if symbol == "BTC/USDT": return { "symbol": "BTC/USDT", -- cgit v1.2.3