mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
feat: rename endpoint to be better aligned
This commit is contained in:
@@ -458,7 +458,9 @@ def list_exchanges(config=Depends(get_config)):
|
||||
}
|
||||
|
||||
|
||||
@router.get("/hyperopt-loss", response_model=HyperoptLossListResponse, tags=["strategy"])
|
||||
@router.get(
|
||||
"/hyperoptloss", response_model=HyperoptLossListResponse, tags=["hyperopt", "webserver"]
|
||||
)
|
||||
def list_hyperoptloss(
|
||||
config=Depends(get_config),
|
||||
):
|
||||
|
||||
@@ -2193,7 +2193,7 @@ def test_list_hyperoptloss(botclient, tmp_path):
|
||||
ftbot, client = botclient
|
||||
ftbot.config["user_data_dir"] = tmp_path
|
||||
|
||||
rc = client_get(client, f"{BASE_URI}/hyperopt-loss")
|
||||
rc = client_get(client, f"{BASE_URI}/hyperoptloss")
|
||||
assert_response(rc)
|
||||
response = rc.json()
|
||||
assert isinstance(response["loss_functions"], list)
|
||||
|
||||
Reference in New Issue
Block a user