File tree Expand file tree Collapse file tree 2 files changed +29
-18
lines changed
tests/integration/go_ethereum Expand file tree Collapse file tree 2 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 1
1
import pytest
2
2
3
+ from eth_typing import (
4
+ ChecksumAddress ,
5
+ )
6
+ from flaky import (
7
+ flaky ,
8
+ )
9
+ from typing import (
10
+ TYPE_CHECKING ,
11
+ )
12
+
3
13
from web3 ._utils .module_testing import ( # noqa: F401
4
14
AsyncEthModuleTest ,
5
15
AsyncNetModuleTest ,
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,18 @@ def test_eth_protocol_version(self, w3):
40
55
def test_eth_protocolVersion (self , w3 ):
41
56
super ().test_eth_protocolVersion (w3 )
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
+
43
70
44
71
class GoEthereumVersionModuleTest (VersionModuleTest ):
45
72
@pytest .mark .xfail (reason = 'eth_protocolVersion was removed in Geth 1.10.0' )
Original file line number Diff line number Diff line change 1
1
import pytest
2
2
3
3
import pytest_asyncio
4
- from flaky import (
5
- flaky ,
6
- )
7
4
8
- from eth_typing import (
9
- ChecksumAddress ,
10
- )
11
5
from tests .utils import (
12
6
get_open_port ,
13
7
)
14
- from typing import (
15
- TYPE_CHECKING ,
16
- )
17
8
from web3 import Web3
18
9
from web3 ._utils .module_testing .go_ethereum_admin_module import (
19
10
GoEthereumAsyncAdminModuleTest ,
60
51
)
61
52
62
53
63
- if TYPE_CHECKING :
64
- from web3 import Web3 # noqa: F401
65
-
66
-
67
54
@pytest .fixture (scope = "module" )
68
55
def rpc_port ():
69
56
return get_open_port ()
@@ -171,11 +158,8 @@ async def test_admin_start_stop_ws(self, w3: "Web3") -> None:
171
158
172
159
173
160
class TestGoEthereumEthModuleTest (GoEthereumEthModuleTest ):
174
- @flaky (max_runs = 3 )
175
- def test_eth_estimate_gas (
176
- self , w3 : "Web3" , unlocked_account_dual_type : ChecksumAddress
177
- ) -> None :
178
- pass
161
+ pass
162
+
179
163
180
164
class TestGoEthereumVersionModuleTest (GoEthereumVersionModuleTest ):
181
165
pass
You can’t perform that action at this time.
0 commit comments