Fix some tests after drawdown calculation change

This commit is contained in:
Matthias
2022-01-04 16:16:08 +01:00
parent 7a2b50ce8b
commit 09fae25c94
5 changed files with 15 additions and 14 deletions

View File

@@ -343,7 +343,7 @@ def test_generate_profit_graph(testdatadir):
profit = find_trace_in_fig_data(figure.data, "Profit")
assert isinstance(profit, go.Scatter)
drawdown = find_trace_in_fig_data(figure.data, "Max drawdown 10.45%")
drawdown = find_trace_in_fig_data(figure.data, "Max drawdown 35.69%")
assert isinstance(drawdown, go.Scatter)
parallel = find_trace_in_fig_data(figure.data, "Parallel trades")
assert isinstance(parallel, go.Scatter)