Add additional test scenarios

This commit is contained in:
Matthias
2020-06-14 10:49:15 +02:00
parent 1c1a7150ae
commit 8b186dbe0e
6 changed files with 43 additions and 9 deletions

View File

@@ -57,9 +57,9 @@ def test_returns_latest_signal(mocker, default_conf, ohlcv_history):
def test_trade_no_dataprovider(default_conf, mocker, caplog):
strategy = DefaultStrategy({})
# Delete DP for sure (suffers from test leakage, as we update this in the base class)
if strategy.dp:
del strategy.dp
# Delete DP for sure (suffers from test leakage, as this is updated in the base class)
if strategy.dp is not None:
strategy.dp = None
with pytest.raises(OperationalException, match="DataProvider not found."):
strategy.get_signal('ETH/BTC', '5m')