mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-03-02 16:21:20 +00:00
delete market change when deleting backtest result
This commit is contained in:
@@ -2598,6 +2598,8 @@ def test_api_delete_backtest_history_entry(botclient, tmp_path: Path):
|
||||
file_path.touch()
|
||||
meta_path = file_path.with_suffix(".meta.json")
|
||||
meta_path.touch()
|
||||
market_change_path = file_path.with_name(file_path.stem + "_market_change.feather")
|
||||
market_change_path.touch()
|
||||
|
||||
rc = client_delete(client, f"{BASE_URI}/backtest/history/randomFile.json")
|
||||
assert_response(rc, 503)
|
||||
@@ -2614,6 +2616,7 @@ def test_api_delete_backtest_history_entry(botclient, tmp_path: Path):
|
||||
|
||||
assert not file_path.exists()
|
||||
assert not meta_path.exists()
|
||||
assert not market_change_path.exists()
|
||||
|
||||
|
||||
def test_api_patch_backtest_history_entry(botclient, tmp_path: Path):
|
||||
|
||||
Reference in New Issue
Block a user