|
1 | 1 | import pytest
|
| 2 | +from typing import ( |
| 3 | + TYPE_CHECKING, |
| 4 | +) |
| 5 | + |
| 6 | +from eth_typing import ( |
| 7 | + ChecksumAddress, |
| 8 | +) |
| 9 | +from flaky import ( |
| 10 | + flaky, |
| 11 | +) |
2 | 12 |
|
3 | 13 | from web3._utils.module_testing import ( # noqa: F401
|
4 | 14 | AsyncEthModuleTest,
|
|
13 | 23 | Web3ModuleTest,
|
14 | 24 | )
|
15 | 25 |
|
| 26 | +if TYPE_CHECKING: |
| 27 | + from web3 import ( # noqa: F401 |
| 28 | + Web3, |
| 29 | + ) |
| 30 | + |
16 | 31 |
|
17 | 32 | class GoEthereumTest(Web3ModuleTest):
|
18 | 33 | def _check_web3_clientVersion(self, client_version):
|
@@ -40,6 +55,24 @@ def test_eth_protocol_version(self, web3):
|
40 | 55 | def test_eth_protocolVersion(self, web3):
|
41 | 56 | super().test_eth_protocolVersion(web3)
|
42 | 57 |
|
| 58 | + @flaky(max_runs=3) |
| 59 | + def test_eth_estimate_gas( |
| 60 | + self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress |
| 61 | + ) -> None: |
| 62 | + super().test_eth_estimate_gas(w3, unlocked_account_dual_type) |
| 63 | + |
| 64 | + @flaky(max_runs=3) |
| 65 | + def test_eth_estimateGas_deprecated( |
| 66 | + self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress |
| 67 | + ) -> None: |
| 68 | + super().test_eth_estimateGas_deprecated(w3, unlocked_account_dual_type) |
| 69 | + |
| 70 | + @flaky(max_runs=3) |
| 71 | + def test_eth_estimate_gas_with_block( |
| 72 | + self, w3: "Web3", unlocked_account_dual_type: ChecksumAddress |
| 73 | + ) -> None: |
| 74 | + super().test_eth_estimate_gas_with_block(w3, unlocked_account_dual_type) |
| 75 | + |
43 | 76 |
|
44 | 77 | class GoEthereumVersionModuleTest(VersionModuleTest):
|
45 | 78 | @pytest.mark.xfail(reason='eth_protocolVersion was removed in Geth 1.10.0')
|
|
0 commit comments