Use realistic threshold for "get_fee" test
This commit is contained in:
parent
6e41add40e
commit
acb00cd072
@ -142,8 +142,8 @@ class TestCCXTExchange():
|
|||||||
def test_ccxt_get_fee(self, exchange):
|
def test_ccxt_get_fee(self, exchange):
|
||||||
exchange, exchangename = exchange
|
exchange, exchangename = exchange
|
||||||
pair = EXCHANGES[exchangename]['pair']
|
pair = EXCHANGES[exchangename]['pair']
|
||||||
|
threshold = 0.01
|
||||||
assert 0 < exchange.get_fee(pair, 'limit', 'buy') < 1
|
assert 0 < exchange.get_fee(pair, 'limit', 'buy') < threshold
|
||||||
assert 0 < exchange.get_fee(pair, 'limit', 'sell') < 1
|
assert 0 < exchange.get_fee(pair, 'limit', 'sell') < threshold
|
||||||
assert 0 < exchange.get_fee(pair, 'market', 'buy') < 1
|
assert 0 < exchange.get_fee(pair, 'market', 'buy') < threshold
|
||||||
assert 0 < exchange.get_fee(pair, 'market', 'sell') < 1
|
assert 0 < exchange.get_fee(pair, 'market', 'sell') < threshold
|
||||||
|
Loading…
Reference in New Issue
Block a user