Skip to content

Commit 0e7c651

Browse files
committed
chore: integration test updates receipt.
Signed-off-by: exploreriii <[email protected]>
1 parent 2606131 commit 0e7c651

20 files changed

+55
-55
lines changed

tests/integration/account_create_transaction_e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_integration_account_create_transaction_can_execute():
2525
transaction.freeze_with(env.client)
2626
receipt = transaction.execute(env.client)
2727

28-
assert receipt.accountId is not None, "AccountID not found in receipt. Account may not have been created."
28+
assert receipt.account_id is not None, "AccountID not found in receipt. Account may not have been created."
2929
finally:
3030
env.close()
3131

tests/integration/account_info_query_e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_integration_account_info_query_can_execute():
3434
.execute(env.client)
3535
)
3636
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
37-
new_account_id = receipt.accountId
37+
new_account_id = receipt.account_id
3838

3939
info = AccountInfoQuery(new_account_id).execute(env.client)
4040

tests/integration/query_e2e_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_integration_free_query_no_cost():
2727
.execute(env.client)
2828
)
2929
assert receipt.status == ResponseCode.SUCCESS
30-
account_id = receipt.accountId
30+
account_id = receipt.account_id
3131
assert account_id is not None
3232

3333
env.client.set_operator(account_id, new_private_key)
@@ -78,7 +78,7 @@ def test_integration_free_query_with_manual_payment():
7878
)
7979

8080
assert receipt.status == ResponseCode.SUCCESS
81-
account_id = receipt.accountId
81+
account_id = receipt.account_id
8282
assert account_id is not None
8383

8484
env.client.set_operator(account_id, new_private_key)
@@ -134,7 +134,7 @@ def test_integration_paid_query_network_cost():
134134
.execute(env.client)
135135
)
136136
assert receipt.status == ResponseCode.SUCCESS
137-
account_id = receipt.accountId
137+
account_id = receipt.account_id
138138
assert account_id is not None
139139

140140
env.client.set_operator(account_id, new_private_key)
@@ -174,7 +174,7 @@ def test_integration_paid_query_manual_payment():
174174
)
175175

176176
assert receipt.status == ResponseCode.SUCCESS
177-
account_id = receipt.accountId
177+
account_id = receipt.account_id
178178
assert account_id is not None
179179

180180
env.client.set_operator(account_id, new_private_key)
@@ -220,7 +220,7 @@ def test_integration_paid_query_payment_too_high_fails():
220220
)
221221

222222
assert receipt.status == ResponseCode.SUCCESS
223-
account_id = receipt.accountId
223+
account_id = receipt.account_id
224224
assert account_id is not None
225225

226226
env.client.set_operator(account_id, new_private_key)

tests/integration/token_associate_transaction_e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_integration_token_associate_transaction_can_execute():
2828

2929
account_transaction.freeze_with(env.client)
3030
account_receipt = account_transaction.execute(env.client)
31-
new_account_id = account_receipt.accountId
31+
new_account_id = account_receipt.account_id
3232

3333
token_id = create_fungible_token(env)
3434
assert token_id is not None, "TokenID not found in receipt. Token may not have been created."

tests/integration/token_dissociate_transaction_e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_integration_token_dissociate_transaction_can_execute():
2929

3030
account_transaction.freeze_with(env.client)
3131
account_receipt = account_transaction.execute(env.client)
32-
new_account_id = account_receipt.accountId
32+
new_account_id = account_receipt.account_id
3333

3434
token_id = create_fungible_token(env)
3535

tests/integration/token_freeze_transaction_e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_integration_token_freeze_transaction_can_execute():
3333

3434
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
3535

36-
account_id = receipt.accountId
36+
account_id = receipt.account_id
3737

3838
token_id = create_fungible_token(env)
3939

tests/integration/token_grant_kyc_transaction_e2e_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_token_grant_kyc_transaction_can_execute():
2424
.execute(env.client)
2525
)
2626
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
27-
account_id = receipt.accountId
27+
account_id = receipt.account_id
2828

2929
# Create a new token and set the kyc key to be the operator's key
3030
token_id = create_fungible_token(env, [lambda tx: tx.set_kyc_key(env.operator_key)])
@@ -67,7 +67,7 @@ def test_token_grant_kyc_transaction_fails_with_no_kyc_key():
6767
.execute(env.client)
6868
)
6969
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
70-
account_id = receipt.accountId
70+
account_id = receipt.account_id
7171

7272
# Create a new token without KYC key
7373
token_id = create_fungible_token(env)
@@ -121,7 +121,7 @@ def test_token_grant_kyc_transaction_fails_when_account_not_associated():
121121
.execute(env.client)
122122
)
123123
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
124-
account_id = receipt.accountId
124+
account_id = receipt.account_id
125125

126126
# Create a new token and set the kyc key to be the operator's key
127127
token_id = create_fungible_token(env, [lambda tx: tx.set_kyc_key(env.operator_key)])

tests/integration/token_mint_transaction_e2e_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_integration_token_mint_nft_transaction_can_execute():
2929

3030
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
3131

32-
account_id = receipt.accountId
32+
account_id = receipt.account_id
3333
assert account_id is not None
3434

3535
token_id = create_fungible_token(env)

tests/integration/token_reject_transaction_e2e_test.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_integration_token_reject_transaction_can_execute():
3636

3737
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
3838

39-
account_id = receipt.accountId
39+
account_id = receipt.account_id
4040

4141
token1 = create_fungible_token(env)
4242
token2 = create_fungible_token(env)
@@ -116,7 +116,7 @@ def test_integration_token_reject_transaction_can_execute_for_nft():
116116
.set_key(new_account_public_key).set_initial_balance(Hbar(1))
117117
.set_account_memo("Receiver Account").execute(env.client))
118118
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
119-
account_id = receipt.accountId
119+
account_id = receipt.account_id
120120
assert account_id is not None
121121

122122
# Associate the tokens to the new account
@@ -176,7 +176,7 @@ def test_integration_token_reject_transaction_can_execute_for_ft_and_nft_paralle
176176

177177
receipt = AccountCreateTransaction().set_key(new_account_public_key).set_initial_balance(Hbar(1)).set_account_memo("Receiver Account").execute(env.client)
178178
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
179-
account_id = receipt.accountId
179+
account_id = receipt.account_id
180180
assert account_id is not None
181181

182182
receipt = (TokenAssociateTransaction().set_account_id(account_id).add_token_id(token_id_1).add_token_id(token_id_2).add_token_id(nft_id_1).add_token_id(nft_id_2)
@@ -235,7 +235,7 @@ def test_token_reject_transaction_fails_with_invalid_signature():
235235

236236
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
237237

238-
account_id = receipt.accountId
238+
account_id = receipt.account_id
239239

240240
token1 = create_fungible_token(env)
241241

@@ -302,7 +302,7 @@ def test_integration_token_reject_transaction_fails_with_reference_size_exceeded
302302
)
303303
receipt = account_transaction.execute(env.client)
304304
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
305-
account_id = receipt.accountId
305+
account_id = receipt.account_id
306306
assert account_id is not None
307307

308308
# Associate the tokens to the new account
@@ -417,7 +417,7 @@ def test_integration_token_reject_transaction_fails_when_fungible_token_owner_ha
417417

418418
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
419419

420-
account_id = receipt.accountId
420+
account_id = receipt.account_id
421421

422422
# Associate the token to the receiver account
423423
token_associate_transaction = TokenAssociateTransaction(
@@ -466,7 +466,7 @@ def test_integration_token_reject_transaction_fails_when_nft_owner_has_no_balanc
466466

467467
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
468468

469-
account_id = receipt.accountId
469+
account_id = receipt.account_id
470470

471471
# Create NFT with treasury
472472
nft_token_id = create_nft_token(env)
@@ -532,7 +532,7 @@ def test_token_reject_transaction_fails_with_token_reference_repeated_fungible()
532532

533533
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
534534

535-
account_id = receipt.accountId
535+
account_id = receipt.account_id
536536

537537
# Create fungible token with treasury
538538
token_id = create_fungible_token(env)
@@ -592,7 +592,7 @@ def test_token_reject_transaction_fails_with_token_reference_repeated_nft():
592592

593593
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
594594

595-
account_id = receipt.accountId
595+
account_id = receipt.account_id
596596

597597
# Create NFT with treasury
598598
nft_token_id = create_nft_token(env)
@@ -682,7 +682,7 @@ def test_integration_token_reject_transaction_fails_when_rejecting_nft_with_toke
682682

683683
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
684684

685-
account_id = receipt.accountId
685+
account_id = receipt.account_id
686686

687687
# Associate the NFT to the receiver
688688
nft_associate_transaction = TokenAssociateTransaction(
@@ -755,7 +755,7 @@ def test_token_reject_transaction_fails_with_nft_token_frozen():
755755

756756
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
757757

758-
account_id = receipt.accountId
758+
account_id = receipt.account_id
759759

760760
# Associate the NFT to the receiver
761761
associate_transaction = TokenAssociateTransaction(
@@ -822,7 +822,7 @@ def test_token_reject_transaction_fails_with_fungible_token_frozen():
822822

823823
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode(receipt.status).name}"
824824

825-
account_id = receipt.accountId
825+
account_id = receipt.account_id
826826

827827
# Create fungible token with treasury
828828
token_id = create_fungible_token(env)
@@ -884,7 +884,7 @@ def test_token_reject_transaction_receiver_sig_required_nft():
884884
.set_receiver_signature_required(True).set_account_memo("Treasury Account")
885885
.freeze_with(env.client).sign(treasury_private_key).execute(env.client))
886886
assert receipt.status == ResponseCode.SUCCESS, f"Treasury account creation failed with status: {ResponseCode(receipt.status).name}"
887-
treasury_id = receipt.accountId
887+
treasury_id = receipt.account_id
888888

889889
# Create a new NFT token with a custom treasury account that requires receiver signatures
890890
# Pass lambda functions to create_nft_token to configure the treasury account and sign with its key
@@ -902,7 +902,7 @@ def test_token_reject_transaction_receiver_sig_required_nft():
902902

903903
receipt = (AccountCreateTransaction().set_key(receiver_public_key).set_initial_balance(Hbar(1)).set_account_memo("Receiver Account").execute(env.client))
904904
assert receipt.status == ResponseCode.SUCCESS, f"Receiver account creation failed with status: {ResponseCode(receipt.status).name}"
905-
receiver_id = receipt.accountId
905+
receiver_id = receipt.account_id
906906

907907
associate_transaction = TokenAssociateTransaction(
908908
account_id=receiver_id,
@@ -950,7 +950,7 @@ def test_token_reject_transaction_receiver_sig_required_fungible():
950950
)
951951
receipt = transaction.freeze_with(env.client).sign(treasury_private_key).execute(env.client)
952952
assert receipt.status == ResponseCode.SUCCESS, f"Treasury account creation failed with status: {ResponseCode(receipt.status).name}"
953-
treasury_id = receipt.accountId
953+
treasury_id = receipt.account_id
954954

955955
# Create a fungible token with a custom treasury account that requires receiver signatures
956956
# Pass lambda functions to create_fungible_token to configure the treasury account and sign with its key
@@ -970,7 +970,7 @@ def test_token_reject_transaction_receiver_sig_required_fungible():
970970
)
971971
receipt = receiver_transaction.execute(env.client)
972972
assert receipt.status == ResponseCode.SUCCESS, f"Receiver account creation failed with status: {ResponseCode(receipt.status).name}"
973-
receiver_id = receipt.accountId
973+
receiver_id = receipt.account_id
974974

975975
# Associate the token to the receiver
976976
associate_transaction = TokenAssociateTransaction(

tests/integration/token_revoke_kyc_transaction_e2e_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_token_revoke_kyc_transaction_can_execute():
2525
.execute(env.client)
2626
)
2727
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode.get_name(receipt.status)}"
28-
account_id = receipt.accountId
28+
account_id = receipt.account_id
2929

3030
# Create a new token and set the kyc key to be the operator's key
3131
token_id = create_fungible_token(env, [lambda tx: tx.set_kyc_key(env.operator_key)])
@@ -77,7 +77,7 @@ def test_token_revoke_kyc_transaction_fails_with_no_kyc_key():
7777
.execute(env.client)
7878
)
7979
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode.get_name(receipt.status)}"
80-
account_id = receipt.accountId
80+
account_id = receipt.account_id
8181

8282
# Create a new token without KYC key
8383
token_id = create_fungible_token(env)
@@ -129,7 +129,7 @@ def test_token_revoke_kyc_transaction_fails_when_account_not_associated():
129129
.execute(env.client)
130130
)
131131
assert receipt.status == ResponseCode.SUCCESS, f"Account creation failed with status: {ResponseCode.get_name(receipt.status)}"
132-
account_id = receipt.accountId
132+
account_id = receipt.account_id
133133

134134
# Create a new token and set the kyc key to be the operator's key
135135
token_id = create_fungible_token(env, [lambda tx: tx.set_kyc_key(env.operator_key)])

0 commit comments

Comments
 (0)