test: only implemented for binance

This commit is contained in:
misagh 2018-11-22 17:41:01 +01:00
parent 2461d86c8d
commit 24df093a85
1 changed files with 7 additions and 0 deletions

View File

@ -1171,3 +1171,10 @@ def test_get_fee(default_conf, mocker):
ccxt_exceptionhandlers(mocker, default_conf, api_mock,
'get_fee', 'calculate_fee')
def test_stoploss_limit_available_only_for_binance(default_conf, mocker):
api_mock = MagicMock()
exchange = get_patched_exchange(mocker, default_conf, api_mock)
with pytest.raises(NotImplementedError):
exchange.stoploss_limit('BTC/ETH', 1, 0.8, 0.79)