Add strategy as mandatory argument

This commit is contained in:
Matthias
2022-04-13 06:47:39 +02:00
parent 0c87702545
commit 4ac54a76af
3 changed files with 21 additions and 6 deletions

View File

@@ -1599,7 +1599,8 @@ def test_api_backtest_history(botclient, mocker, testdatadir):
result = rc.json()
assert len(result) == 1
fn = result[0]['filename']
rc = client_get(client, f"{BASE_URI}/backtest/history/result?filename={fn}")
strategy = result[0]['strategy']
rc = client_get(client, f"{BASE_URI}/backtest/history/result?filename={fn}&strategy={strategy}")
assert_response(rc)
result2 = rc.json()
assert result2