Skip to content

Commit

Permalink
fix deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
luistarkbank committed Feb 12, 2025
1 parent 47b0e6d commit 5512368
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/sdk/test_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,18 @@ def test_success(self):
class TestDepositInfoPatch(TestCase):

def test_success_amount(self):
deposits = starkbank.deposit.query(status="created", limit=1)
deposits = starkbank.deposit.query(status="created", limit=20)
deposit_amount = 0
for deposit in deposits:
self.assertIsNotNone(deposit.id)
updated_deposit = starkbank.deposit.update(
deposit.id,
amount=deposit_amount,
)
print(updated_deposit)
self.assertEqual(updated_deposit.amount, deposit_amount)
if deposit.type != "ted":
self.assertIsNotNone(deposit.id)
updated_deposit = starkbank.deposit.update(
deposit.id,
amount=deposit_amount,
)
print(updated_deposit)
self.assertEqual(updated_deposit.amount, deposit_amount)
break


if __name__ == '__main__':
Expand Down

0 comments on commit 5512368

Please sign in to comment.