Use realistic threshold for "get_fee" test

This commit is contained in:
Matthias 2021-08-18 06:25:52 +02:00
parent 6e41add40e
commit acb00cd072

View File

@ -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