@@ -41,12 +41,12 @@ def test_convex_api_request_funds(convex_url, test_account):
41
41
42
42
def test_convex_api_topup_account (convex_url ):
43
43
convex = ConvexAPI (convex_url )
44
- account = Account .create_new ()
44
+ account = Account .create ()
45
45
topup_amount = TEST_FUNDING_AMOUNT
46
46
amount = convex .topup_account (account , topup_amount )
47
47
assert (amount >= topup_amount )
48
48
49
- account = Account .create_new ()
49
+ account = Account .create ()
50
50
amount = convex .topup_account (account )
51
51
assert (amount >= 0 )
52
52
@@ -59,7 +59,7 @@ def test_convex_get_account_info(convex_url, test_account):
59
59
assert (info ['sequence' ] > 0 )
60
60
61
61
62
- account = Account .create_new ()
62
+ account = Account .create ()
63
63
with pytest .raises (ConvexRequestError , match = 'Address does not exist' ):
64
64
info = convex .get_account_info (account )
65
65
@@ -86,21 +86,21 @@ def test_convex_api_send_basic_scrypt(convex_url, test_account):
86
86
87
87
def test_convex_api_get_balance_no_funds (convex_url ):
88
88
convex = ConvexAPI (convex_url )
89
- account = Account .create_new ()
89
+ account = Account .create ()
90
90
new_balance = convex .get_balance (account )
91
91
assert (new_balance == 0 )
92
92
93
93
def test_convex_api_get_balance_small_funds (convex_url , test_account ):
94
94
convex = ConvexAPI (convex_url )
95
- account = Account .create_new ()
95
+ account = Account .create ()
96
96
amount = 100
97
97
request_amount = convex .request_funds (amount , account )
98
98
new_balance = convex .get_balance (account )
99
99
assert (new_balance == amount )
100
100
101
101
def test_convex_api_get_balance_new_account (convex_url ):
102
102
convex = ConvexAPI (convex_url )
103
- account = Account .create_new ()
103
+ account = Account .create ()
104
104
amount = TEST_FUNDING_AMOUNT
105
105
request_amount = convex .request_funds (amount , account )
106
106
assert (request_amount == amount )
@@ -122,7 +122,7 @@ def test_convex_api_call(convex_url):
122
122
)
123
123
"""
124
124
convex = ConvexAPI (convex_url )
125
- account = Account .create_new ()
125
+ account = Account .create ()
126
126
amount = TEST_FUNDING_AMOUNT
127
127
request_amount = convex .request_funds (amount , account )
128
128
result = convex .send (deploy_storage , account )
@@ -158,8 +158,8 @@ def test_convex_api_call(convex_url):
158
158
159
159
def test_convex_api_transfer (convex_url ):
160
160
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 ()
163
163
amount = TEST_FUNDING_AMOUNT
164
164
request_amount = convex .request_funds (amount , account_from )
165
165
assert (request_amount == amount )
0 commit comments