File tree Expand file tree Collapse file tree 5 files changed +55
-67
lines changed Expand file tree Collapse file tree 5 files changed +55
-67
lines changed Original file line number Diff line number Diff line change 2
2
requires = [" setuptools" , " wheel" ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
+ [project ]
6
+ name = " hive.py"
7
+ description = " Ethereum Hive Simulators Python Interface"
8
+ readme = " README.md"
9
+ version = " 0.1.0"
10
+ urls = { "Homepage" = " https://github.com/marioevz/hive.py" }
11
+ license = { file = " LICENSE" }
12
+ classifiers = [
13
+ " License :: OSI Approved :: GPL3 License" ,
14
+ " Programming Language :: Python :: 3.10" ,
15
+ ]
16
+ requires-python = " >=3.10"
17
+ dependencies = [
18
+ " requests>=2.31.0,<3"
19
+ ]
20
+
21
+ [project .optional-dependencies ]
22
+ test = [
23
+ " pytest>=7.4.0,<8" ,
24
+ " pytest-cov>=4.1.0,<5"
25
+ ]
26
+ lint = [
27
+ " black==22.3.0; implementation_name == 'cpython'" ,
28
+ " isort>=5.8,<6" ,
29
+ " mypy>=1.4.1,<2" ,
30
+ " types-requests>=2.25.0,<3"
31
+ ]
32
+
33
+ [tool .setuptools .packages .find ]
34
+ where = [" src" ]
35
+ exclude = [" *tests*" ]
36
+
5
37
[tool .isort ]
6
38
profile = " black"
7
39
multi_line_output = 3
8
40
line_length = 99
9
41
10
42
[tool .black ]
11
43
line-length = 99
44
+ target-version = [" py310" ]
45
+
46
+ [tool .pytest .ini_options ]
47
+ console_output_style = " count"
48
+ minversion = " 7.0"
49
+ testpaths = [" src" ]
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ """
2
+ Sanity tests for the Hive simulation framework.
3
+
4
+ Requirements
5
+ ------------
6
+
7
+ Start a hive simulator in dev mode with an execution, beacon and validator
8
+ client:
9
+
10
+ ```shell
11
+ ./hive --dev --client go-ethereum,lighthouse-bn,lighthouse-vc --client-file \
12
+ --docker.output
13
+ ```
14
+ """
15
+
1
16
import os
2
17
from re import match
3
18
@@ -71,11 +86,11 @@ def test_clients_by_role(sim: Simulation):
71
86
)
72
87
73
88
beacon_clients = sim .client_types (role = ClientRole .BeaconClient )
74
- assert len (beacon_clients ) == 1 , "Expected 1 execution client, got {}" .format (
89
+ assert len (beacon_clients ) == 1 , "Expected 1 consensus client, got {}" .format (
75
90
len (beacon_clients )
76
91
)
77
92
78
93
validator_clients = sim .client_types (role = ClientRole .ValidatorClient )
79
- assert len (validator_clients ) == 1 , "Expected 1 execution client, got {}" .format (
94
+ assert len (validator_clients ) == 1 , "Expected 1 validator client, got {}" .format (
80
95
len (validator_clients )
81
96
)
You can’t perform that action at this time.
0 commit comments