Add test for ask_orderbook validation

This commit is contained in:
Matthias
2021-06-25 20:51:45 +02:00
parent 8c542e4028
commit 59a33d0fa9
5 changed files with 24 additions and 5 deletions

View File

@@ -4026,7 +4026,8 @@ def test_order_book_ask_strategy(default_conf, limit_buy_order_open, limit_buy_o
return_value={'bids': [[]], 'asks': [[]]})
with pytest.raises(PricingError):
freqtrade.handle_trade(trade)
assert log_has_re(r'Sell Price at location 1 from orderbook could not be determined\..*', caplog)
assert log_has_re(r'Sell Price at location 1 from orderbook could not be determined\..*',
caplog)
def test_startup_state(default_conf, mocker):