test fixed

This commit is contained in:
misagh
2018-11-25 19:03:28 +01:00
parent 5e1fb11124
commit 92930b2343
4 changed files with 12 additions and 10 deletions

View File

@@ -375,7 +375,7 @@ def test_validate_order_types(default_conf, mocker):
type(api_mock).has = PropertyMock(return_value={'createMarketOrder': False})
mocker.patch('freqtrade.exchange.Exchange._init_ccxt', MagicMock(return_value=api_mock))
default_conf['order_types'] = {'buy': 'limit', 'sell': 'limit', 'stoploss': 'market'}
default_conf['order_types'] = {'buy': 'limit', 'sell': 'limit', 'stoploss': 'market', 'stoploss_on_exchange': 'false'}
with pytest.raises(OperationalException,
match=r'Exchange .* does not support market orders.'):