File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ class DummyProto:
8585 """Stand‑in for proto_TokenInfo; uses real TokenID/AccountID so ._from_proto accepts them."""
8686
8787 def __init__ (self ):
88- # scalar fields
8988 self .name = "Foo"
9089 self .symbol = "F"
9190 self .decimals = 2
@@ -124,12 +123,14 @@ def __init__(self):
124123
125124
126125def test_camelcase_init_and_snake_field_assignment ():
126+ tid = TokenId .from_string ("0.0.123" )
127+
127128 with warnings .catch_warnings (record = True ) as w :
128129 warnings .simplefilter ("always" , FutureWarning )
129- ti = TokenInfo (tokenId = "TID123" , totalSupply = 500 , isDeleted = True )
130+ ti = TokenInfo (tokenId = tid , totalSupply = 500 , isDeleted = True )
130131 assert any ("tokenId" in str (wi .message ) for wi in w )
131132 assert any ("totalSupply" in str (wi .message ) for wi in w )
132- assert ti .token_id == "TID123"
133+ assert ti .token_id == tid
133134 assert ti .total_supply == 500
134135 assert ti .is_deleted is True
135136
You can’t perform that action at this time.
0 commit comments