Skip to content

Commit bb5563c

Browse files
committed
chore: remove duplicate
1 parent c75388a commit bb5563c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/integration/token_pause_transaction_e2e_test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ def unpausable_token(env):
6262
"token_id, exception, msg",
6363
[
6464
(None, ValueError, "token_id must be set"),
65-
(TokenId(0, 0, 99999999), PrecheckError, ResponseCode.get_name(ResponseCode.INVALID_TOKEN_ID.value)),
66-
# (lazy_fixture("unpausable_token"), PrecheckError, ResponseCode.get_name(ResponseCode.TOKEN_HAS_NO_PAUSE_KEY.value)),
65+
(TokenId(0, 0, 99999999), PrecheckError, ResponseCode.get_name(ResponseCode.INVALID_TOKEN_ID)),
66+
# (lazy_fixture("unpausable_token"), PrecheckError, ResponseCode.get_name(ResponseCode.TOKEN_HAS_NO_PAUSE_KEY)),
6767
],
68+
6869
)
6970

7071
def test_pause_error_cases(env, token_id, exception, msg):
@@ -83,7 +84,7 @@ def test_pause_error_cases(env, token_id, exception, msg):
8384
tx.freeze_with(env.client)
8485
else:
8586
with pytest.raises(exception, match=msg):
86-
tx.execute(env.client)
87+
tx.freeze_with(env.client)
8788

8889
@mark.integration
8990
class TestTokenPause:
@@ -131,5 +132,5 @@ def test_transfers_blocked_when_paused(self, env, account: Account, pausable_tok
131132
])
132133
def test_double_pause_errors(self, env, pausable_token, bad_key, code):
133134
env.pause_token(pausable_token)
134-
with pytest.raises(ReceiptStatusError, match=ResponseCode.get_name(code.value)):
135+
with pytest.raises(ReceiptStatusError, match=ResponseCode.get_name(code)):
135136
env.pause_token(pausable_token, key=bad_key)

0 commit comments

Comments
 (0)