From a1eebe4af0b9345dcb88263b2952c68d1c8f3d18 Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Thu, 19 Dec 2024 22:31:02 +0100 Subject: [PATCH] fix test cases --- web_app/tests/test_dashboard.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/web_app/tests/test_dashboard.py b/web_app/tests/test_dashboard.py index 4699ea86..7a7eae2f 100644 --- a/web_app/tests/test_dashboard.py +++ b/web_app/tests/test_dashboard.py @@ -98,6 +98,7 @@ async def test_get_dashboard_success(): "start_price": "100.0", "amount": "2.0", "token_symbol": "ETH", + "id": "0", } ] mock_get_health_ratio_and_tvl.return_value = ("1.2", "1000.0") @@ -105,15 +106,6 @@ async def test_get_dashboard_success(): "ETH": 5.0, "USDC": 1000.0, } - # mock_get_zklend_position.return_value = { - # "products": [ - # { - # "name": "ZkLend", - # "groups": {"1": {"healthRatio": "1.2"}}, - # "positions": [], - # } - # ] - # } mock_get_current_position_sum.return_value = Decimal("200.0") mock_get_start_position_sum.return_value = Decimal("200.0") @@ -133,6 +125,7 @@ async def test_get_dashboard_success(): "borrowed": "200000.00", "balance": "2.020202020202020202020202020", "health_ratio": "1.2", + "position_id": "0", } @@ -286,6 +279,7 @@ async def test_empty_positions( "borrowed": "0", "balance": "0", "health_ratio": "0", + "position_id": "0", }