From dec3c3e13b9daf850b0e495657d435e21f3ce17f Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Apr 2026 12:12:11 +0200 Subject: [PATCH] test: fix a couple tsts ... --- tests/rpc/test_rpc_apiserver.py | 4 ++-- tests/test_wallets.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index af5f5e5bf..95cb9512a 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -3332,7 +3332,7 @@ def test_api_backtest_wallets(botclient, tmp_path: Path): "2018-01-01T00:05:00Z", ], "currency": ["ETH", "BTC", "ETH", "BTC"], - "price": [2000, 60_000, 2001, 60_001], + "rate": [2000, 60_000, 2001, 60_001], "balance": [0.5, 0.25, 0.5, 0.25], } ) @@ -3357,7 +3357,7 @@ def test_api_backtest_wallets(botclient, tmp_path: Path): assert_response(rc, 200) result = rc.json() assert result["length"] == 2 - assert result["columns"] == ["date", "__date_ts", "total"] + assert result["columns"] == ["date", "__date_ts", "total_quote"] assert result["data"] == [ ["2018-01-01T00:00:00Z", 1514764800000, 16000.0], ["2018-01-01T00:05:00Z", 1514765100000, 16000.75], diff --git a/tests/test_wallets.py b/tests/test_wallets.py index b14a5e602..2f37bf5a2 100644 --- a/tests/test_wallets.py +++ b/tests/test_wallets.py @@ -633,7 +633,7 @@ def test_record_wallet_state_stores_wallet_history(mocker, default_conf_usdt): mocker.patch.object( freqtrade.exchange, "get_conversion_rate", - side_effect=lambda currency, _: conversion_rates.get(currency, 1.0), + side_effect=lambda currency, *args, **kwargs: conversion_rates.get(currency, 1.0), ) mocker.patch( "freqtrade.persistence.trade_model.Trade.get_open_trades",