fix: exclude (soft) deleted wallets when creating an invoice (#3439)

This commit is contained in:
Vlad Stan 2025-10-21 14:59:04 +03:00 committed by GitHub
parent 785fb7af8e
commit b9de754598
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 4 deletions

View file

@ -30,6 +30,17 @@ async def test_create_wallet_and_delete_wallet(app, to_user):
# check if wallet is deleted
del_wallet = await get_wallet(wallet.id)
assert del_wallet is None
# check if wallet is deleted
del_wallet = await get_wallet(wallet.id, False)
assert del_wallet is None
del_wallet = await get_wallet(wallet.id, None)
assert del_wallet is not None
assert del_wallet.deleted is True
del_wallet = await get_wallet(wallet.id, True)
assert del_wallet is not None
assert del_wallet.deleted is True