@@ -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
7071def 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
8990class TestTokenPause :
@@ -131,5 +132,5 @@ def test_transfers_blocked_when_paused(self, env, account: Account, pausable_tok
131132])
132133def 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