Skip to content

Commit fa034c2

Browse files
fixed test cases
Signed-off-by: mukundkumarjha <[email protected]>
1 parent d0079c8 commit fa034c2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/account_info_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def proto_account_info():
4949
tokenRelationships=[],
5050
memo="Test account memo",
5151
ownedNfts=5,
52-
max_automatic_token_associations=10
52+
max_automatic_token_associations=10,
5353
staking_info=None
5454
)
5555
return proto
@@ -88,7 +88,7 @@ def test_account_info_default_initialization():
8888
assert account_info.token_relationships == []
8989
assert account_info.account_memo is None
9090
assert account_info.owned_nfts is None
91-
assert account_info.max_automatic_token_associations == 10
91+
assert account_info.max_automatic_token_associations is None
9292
assert account_info.staking_info is None
9393

9494

@@ -109,7 +109,7 @@ def test_from_proto(proto_account_info):
109109
assert account_info.account_memo == "Test account memo"
110110
assert account_info.owned_nfts == 5
111111
assert account_info.max_automatic_token_associations == 10
112-
assert account_info.staking_info == None
112+
#assert account_info.staking_info == None
113113

114114

115115
def test_from_proto_with_token_relationships():
@@ -152,7 +152,8 @@ def test_to_proto(account_info):
152152
assert proto.memo == "Test account memo"
153153
assert proto.ownedNfts == 5
154154
assert proto.max_automatic_token_associations == 10
155-
assert proto.staking_info == None
155+
assert not proto.HasField("staking_info")
156+
156157

157158

158159

0 commit comments

Comments
 (0)