Investigate random test failure

This commit is contained in:
Matthias 2022-01-23 17:42:18 +01:00
parent 4b6f9121ca
commit 6492e1cd76

View File

@ -763,6 +763,8 @@ def test_backtest_pricecontours_protections(default_conf, fee, mocker, testdatad
# While buy-signals are unrealistic, running backtesting # While buy-signals are unrealistic, running backtesting
# over and over again should not cause different results # over and over again should not cause different results
for [contour, numres] in tests: for [contour, numres] in tests:
# Debug output for random test failure
print(f"{contour}, {numres}")
assert len(simple_backtest(default_conf, contour, mocker, testdatadir)['results']) == numres assert len(simple_backtest(default_conf, contour, mocker, testdatadir)['results']) == numres