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

@@ -1869,7 +1869,8 @@ def test_get_sell_rate_orderbook_exception(default_conf, mocker, caplog):
exchange = get_patched_exchange(mocker, default_conf)
with pytest.raises(PricingError):
exchange.get_sell_rate(pair, True)
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_get_sell_rate_exception(default_conf, mocker, caplog):