File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/pytest_plugins/consume/simulators Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 10
10
from hive .testing import HiveTest
11
11
12
12
from ethereum_test_base_types import Number , to_json
13
- from ethereum_test_fixtures import (
14
- BlockchainFixtureCommon ,
15
- )
13
+ from ethereum_test_fixtures import BlockchainFixtureCommon
14
+ from ethereum_test_fixtures .blockchain import FixtureHeader
16
15
from pytest_plugins .consume .simulators .helpers .ruleset import (
17
16
ruleset , # TODO: generate dynamically
18
17
)
@@ -56,6 +55,12 @@ def buffered_genesis(client_genesis: dict) -> io.BufferedReader:
56
55
return io .BufferedReader (cast (io .RawIOBase , io .BytesIO (genesis_bytes )))
57
56
58
57
58
+ @pytest .fixture (scope = "function" )
59
+ def genesis_header (fixture : BlockchainFixtureCommon ) -> FixtureHeader :
60
+ """Provide the genesis header from the shared pre-state group."""
61
+ return fixture .genesis # type: ignore
62
+
63
+
59
64
@pytest .fixture (scope = "function" )
60
65
def client (
61
66
hive_test : HiveTest ,
You can’t perform that action at this time.
0 commit comments