From d05cae10f77f4da1c0c195ac6d87d38d7cd25678 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 17 Dec 2024 07:10:50 +0100 Subject: [PATCH] test: remove duplicate test assertion --- tests/rpc/test_rpc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/rpc/test_rpc.py b/tests/rpc/test_rpc.py index 9bb8d64ea..cdc9ca624 100644 --- a/tests/rpc/test_rpc.py +++ b/tests/rpc/test_rpc.py @@ -600,8 +600,6 @@ def test_rpc_balance_handle(default_conf_usdt, mocker, tickers): default_conf_usdt["stake_currency"], default_conf_usdt["fiat_display_currency"] ) - assert pytest.approx(result["total"]) == 2824.83464 - assert pytest.approx(result["value"]) == 2824.83464 * 1.2 assert tickers.call_count == 4 assert tickers.call_args_list[0][1]["cached"] is True # Testing futures - so we should get spot tickers @@ -680,6 +678,7 @@ def test_rpc_balance_handle(default_conf_usdt, mocker, tickers): ] assert pytest.approx(result["total_bot"]) == 69.5 assert pytest.approx(result["total"]) == 2824.83464 # ETH stake is missing. + assert pytest.approx(result["value"]) == 2824.83464 * 1.2 assert result["starting_capital"] == 50 * default_conf_usdt["tradable_balance_ratio"] assert result["starting_capital_ratio"] == pytest.approx(0.4040404)