Skip to content

Commit cc1f48b

Browse files
committed
chore: fix codacy errors
Signed-off-by: exploreriii <[email protected]>
1 parent 09c40d0 commit cc1f48b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/unit/test_deprecated.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

126125
def 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

0 commit comments

Comments
 (0)