Skip to content

Commit 7322251

Browse files
committed
add check balance for account info
1 parent 0241718 commit 7322251

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/intergration/test_convex_api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
ConvexRequestError
1515
)
1616

17-
TEST_FUNDING_AMOUNT = 8000000
17+
TEST_FUNDING_AMOUNT = 8888888
1818

1919
def test_convex_api_language_setup(convex_url):
2020
convex = ConvexAPI(convex_url)
@@ -48,6 +48,11 @@ def test_convex_get_account_info(convex_url, test_account):
4848
with pytest.raises(ConvexRequestError, match='Address does not exist'):
4949
info = convex.get_account_info(account)
5050

51+
request_amount = convex.request_funds(TEST_FUNDING_AMOUNT, account)
52+
info = convex.get_account_info(account)
53+
assert(info)
54+
assert(info['balance'] == TEST_FUNDING_AMOUNT)
55+
5156
def test_convex_api_send_basic_lisp(convex_url, test_account):
5257
convex = ConvexAPI(convex_url)
5358
request_amount = convex.request_funds(TEST_FUNDING_AMOUNT, test_account)

0 commit comments

Comments
 (0)