@@ -672,13 +672,15 @@ def test_function_multiple_error_diagnoses(w3, arg1, arg2, diagnosis):
672
672
673
673
674
674
@pytest .mark .parametrize (
675
- "address" , (
675
+ "address" ,
676
+ (
676
677
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" , # checksummed
677
- b' \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee ' , # noqa: E501
678
- )
678
+ b" \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee " , # noqa: E501
679
+ ),
679
680
)
680
681
def test_function_wrong_args_for_tuple_collapses_args_in_message (
681
- address , tuple_contract ,
682
+ address ,
683
+ tuple_contract ,
682
684
):
683
685
with pytest .raises (ValidationError ) as e :
684
686
tuple_contract .functions .method (
@@ -687,18 +689,23 @@ def test_function_wrong_args_for_tuple_collapses_args_in_message(
687
689
688
690
# assert the user arguments are formatted as expected:
689
691
# (int,(int,int),((int,(bool,(bool)),(address))))
690
- e .match ("\\ (int,\\ (int,int\\ ),\\ (\\ (int,\\ (bool,\\ (bool\\ )\\ ),\\ (address\\ )\\ )\\ )\\ )" ) # noqa: E501
692
+ e .match (
693
+ "\\ (int,\\ (int,int\\ ),\\ (\\ (int,\\ (bool,\\ (bool\\ )\\ ),\\ (address\\ )\\ )\\ )\\ )"
694
+ )
691
695
692
696
# assert the found method signature is formatted as expected:
693
697
# ['method((uint256,uint256[],(int256,bool[2],address[])[]))']
694
- e .match ("\\ ['method\\ (\\ (uint256,uint256\\ [\\ ],\\ (int256,bool\\ [2\\ ],address\\ [\\ ]\\ )\\ [\\ ]\\ )\\ )'\\ ]" ) # noqa: E501
698
+ e .match (
699
+ "\\ ['method\\ (\\ (uint256,uint256\\ [\\ ],\\ (int256,bool\\ [2\\ ],address\\ [\\ ]\\ )\\ [\\ ]\\ )\\ )'\\ ]" # noqa: E501
700
+ )
695
701
696
702
697
703
@pytest .mark .parametrize (
698
- "address" , (
704
+ "address" ,
705
+ (
699
706
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" , # checksummed
700
- b' \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee ' , # noqa: E501
701
- )
707
+ b" \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee \xee " , # noqa: E501
708
+ ),
702
709
)
703
710
def test_function_wrong_args_for_tuple_collapses_kwargs_in_message (
704
711
address , tuple_contract
@@ -710,11 +717,15 @@ def test_function_wrong_args_for_tuple_collapses_kwargs_in_message(
710
717
711
718
# assert the user keyword arguments are formatted as expected:
712
719
# {'a': '(int,(int,int),((int,(bool,(bool)),(address))))'}
713
- e .match ("{'a': '\\ (int,\\ (int,int\\ ),\\ (\\ (int,\\ (bool,\\ (bool\\ )\\ ),\\ (address\\ )\\ )\\ )\\ )'}" ) # noqa: E501
720
+ e .match (
721
+ "{'a': '\\ (int,\\ (int,int\\ ),\\ (\\ (int,\\ (bool,\\ (bool\\ )\\ ),\\ (address\\ )\\ )\\ )\\ )'}" # noqa: E501
722
+ )
714
723
715
724
# assert the found method signature is formatted as expected:
716
725
# ['method((uint256,uint256[],(int256,bool[2],address[])[]))']
717
- e .match ("\\ ['method\\ (\\ (uint256,uint256\\ [\\ ],\\ (int256,bool\\ [2\\ ],address\\ [\\ ]\\ )\\ [\\ ]\\ )\\ )'\\ ]" ) # noqa: E501
726
+ e .match (
727
+ "\\ ['method\\ (\\ (uint256,uint256\\ [\\ ],\\ (int256,bool\\ [2\\ ],address\\ [\\ ]\\ )\\ [\\ ]\\ )\\ )'\\ ]" # noqa: E501
728
+ )
718
729
719
730
720
731
def test_function_no_abi (w3 ):
@@ -1471,7 +1482,7 @@ async def test_async_accepts_block_hash_as_identifier(async_w3, async_math_contr
1471
1482
)
1472
1483
new = await async_math_contract .functions .counter ().call (
1473
1484
block_identifier = more_blocks ["result" ][2 ]
1474
- ) # noqa: E501
1485
+ )
1475
1486
1476
1487
assert old == 0
1477
1488
assert new == 1
0 commit comments