feat: rename endpoint to be better aligned

This commit is contained in:
Matthias
2024-10-22 06:45:51 +02:00
parent 0de3c6945b
commit 46db0bc08c
2 changed files with 4 additions and 2 deletions

View File

@@ -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),
):

View File

@@ -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)