File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1414
1515@pytest .fixture
1616def client (mock_client ):
17- mock_client .network .ledger_id = bytes .fromhex ("00" ) # mainnet ledger id
1817 mock_client .network .ledger_id = bytes .fromhex ("00" ) # mainnet ledger id
1918 return mock_client
2019
@@ -86,7 +85,6 @@ def test_from_string_for_valid_str(contract_str, expected):
8685
8786
8887@pytest .mark .parametrize (
89- "invalid_id" ,
9088 "invalid_id" ,
9189 [
9290 "1.2" , # Too few parts
@@ -100,8 +98,8 @@ def test_from_string_for_valid_str(contract_str, expected):
10098 "0.0.1-addefgh" ,
10199 "0.0.1 - abcde" ,
102100 " 0.0.100 " ,
103- " 1.2.abcdef0123456789abcdef0123456789abcdef01 "
104- "1.2.0xabcdef0123456789abcdef0123456789abcdef01"
101+ " 1.2.abcdef0123456789abcdef0123456789abcdef01 " ,
102+ "1.2.0xabcdef0123456789abcdef0123456789abcdef01" ,
105103 "1.2.001122334455667788990011223344556677" ,
106104 "1.2.000000000000000000000000000000000000000000" ,
107105 ],
@@ -327,10 +325,6 @@ def test_str_representaion_checksum_with_evm_address(client):
327325 """Should raise error on to_string_with_checksum is called when evm_address is set"""
328326 contract_id = ContractId .from_string ("0.0.abcdef0123456789abcdef0123456789abcdef01" )
329327
330- with pytest .raises (
331- ValueError ,
332- match = "to_string_with_checksum cannot be applied to ContractId with evm_address" ,
333- ):
334328 with pytest .raises (
335329 ValueError ,
336330 match = "to_string_with_checksum cannot be applied to ContractId with evm_address" ,
You can’t perform that action at this time.
0 commit comments