Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Dec 19, 2024
1 parent 1808989 commit a1eebe4
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions web_app/tests/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,14 @@ 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")
mock_get_wallet_balances.return_value = {
"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")

Expand All @@ -133,6 +125,7 @@ async def test_get_dashboard_success():
"borrowed": "200000.00",
"balance": "2.020202020202020202020202020",
"health_ratio": "1.2",
"position_id": "0",
}


Expand Down Expand Up @@ -286,6 +279,7 @@ async def test_empty_positions(
"borrowed": "0",
"balance": "0",
"health_ratio": "0",
"position_id": "0",
}


Expand Down

0 comments on commit a1eebe4

Please sign in to comment.