@@ -41,12 +41,12 @@ def test_convex_api_request_funds(convex_url, test_account):
4141
4242def test_convex_api_topup_account (convex_url ):
4343 convex = ConvexAPI (convex_url )
44- account = Account .create_new ()
44+ account = Account .create ()
4545 topup_amount = TEST_FUNDING_AMOUNT
4646 amount = convex .topup_account (account , topup_amount )
4747 assert (amount >= topup_amount )
4848
49- account = Account .create_new ()
49+ account = Account .create ()
5050 amount = convex .topup_account (account )
5151 assert (amount >= 0 )
5252
@@ -59,7 +59,7 @@ def test_convex_get_account_info(convex_url, test_account):
5959 assert (info ['sequence' ] > 0 )
6060
6161
62- account = Account .create_new ()
62+ account = Account .create ()
6363 with pytest .raises (ConvexRequestError , match = 'Address does not exist' ):
6464 info = convex .get_account_info (account )
6565
@@ -86,21 +86,21 @@ def test_convex_api_send_basic_scrypt(convex_url, test_account):
8686
8787def test_convex_api_get_balance_no_funds (convex_url ):
8888 convex = ConvexAPI (convex_url )
89- account = Account .create_new ()
89+ account = Account .create ()
9090 new_balance = convex .get_balance (account )
9191 assert (new_balance == 0 )
9292
9393def test_convex_api_get_balance_small_funds (convex_url , test_account ):
9494 convex = ConvexAPI (convex_url )
95- account = Account .create_new ()
95+ account = Account .create ()
9696 amount = 100
9797 request_amount = convex .request_funds (amount , account )
9898 new_balance = convex .get_balance (account )
9999 assert (new_balance == amount )
100100
101101def test_convex_api_get_balance_new_account (convex_url ):
102102 convex = ConvexAPI (convex_url )
103- account = Account .create_new ()
103+ account = Account .create ()
104104 amount = TEST_FUNDING_AMOUNT
105105 request_amount = convex .request_funds (amount , account )
106106 assert (request_amount == amount )
@@ -122,7 +122,7 @@ def test_convex_api_call(convex_url):
122122)
123123"""
124124 convex = ConvexAPI (convex_url )
125- account = Account .create_new ()
125+ account = Account .create ()
126126 amount = TEST_FUNDING_AMOUNT
127127 request_amount = convex .request_funds (amount , account )
128128 result = convex .send (deploy_storage , account )
@@ -158,8 +158,8 @@ def test_convex_api_call(convex_url):
158158
159159def test_convex_api_transfer (convex_url ):
160160 convex = ConvexAPI (convex_url )
161- account_from = Account .create_new ()
162- account_to = Account .create_new ()
161+ account_from = Account .create ()
162+ account_to = Account .create ()
163163 amount = TEST_FUNDING_AMOUNT
164164 request_amount = convex .request_funds (amount , account_from )
165165 assert (request_amount == amount )
0 commit comments