Skip to content

Commit 125fa63

Browse files
committed
fix(consume): add genesis_header to single_test_cilent plugin
1 parent 1c1e00a commit 125fa63

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/pytest_plugins/consume/simulators/single_test_client.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
from hive.testing import HiveTest
1111

1212
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
1615
from pytest_plugins.consume.simulators.helpers.ruleset import (
1716
ruleset, # TODO: generate dynamically
1817
)
@@ -56,6 +55,12 @@ def buffered_genesis(client_genesis: dict) -> io.BufferedReader:
5655
return io.BufferedReader(cast(io.RawIOBase, io.BytesIO(genesis_bytes)))
5756

5857

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+
5964
@pytest.fixture(scope="function")
6065
def client(
6166
hive_test: HiveTest,

0 commit comments

Comments
 (0)