Skip to content

Commit

Permalink
renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 25, 2024
1 parent 488b21b commit 5965bc2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

import pytest
from web_app.contract_tools.mixins.dashboard import DashboardMixin
from web_app.db.crud import PositionDBConnector, UserDBConnector
from web_app.db.crud import PositionDBConnector, UserDBConnector, AirDropDBConnector
from web_app.db.models import Status

user_db = UserDBConnector()
airdrop = AirDropDBConnector()
position_db = PositionDBConnector()


Expand Down Expand Up @@ -98,6 +99,8 @@ def test_close_position(self, form_data: Dict[str, Any]) -> None:
), "Position status should be 'closed' after close operation"

# Clean up - delete the position and user
user = position_db.get_user_by_wallet_id(wallet_id)
airdrop.delete_all_users_airdrop(user.id)
position_db.delete_position(position)
if not position_db.get_positions_by_wallet_id(wallet_id):
position_db.delete_user_by_wallet_id(wallet_id)

0 comments on commit 5965bc2

Please sign in to comment.