Skip to content

Commit 26552ce

Browse files
committed
refactor(consume): move helper modules to a new helpers sub-package
1 parent a06facf commit 26552ce

File tree

9 files changed

+12
-9
lines changed

9 files changed

+12
-9
lines changed

src/cli/extract_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from ethereum_test_fixtures.file import Fixtures
2424
from ethereum_test_fixtures.pre_alloc_groups import PreAllocGroup
2525
from ethereum_test_forks import Fork
26-
from pytest_plugins.consume.hive_simulators.ruleset import ruleset
26+
from pytest_plugins.consume.simulators.helpers.ruleset import ruleset
2727

2828

2929
def get_docker_containers() -> set[str]:

src/pytest_plugins/consume/simulators/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
from ethereum_test_fixtures.file import Fixtures
2525
from ethereum_test_rpc import EthRPC
2626
from pytest_plugins.consume.consume import FixturesSource
27-
from pytest_plugins.consume.simulators.ruleset import ruleset # TODO: generate dynamically
27+
from pytest_plugins.consume.simulators.helpers.ruleset import (
28+
ruleset, # TODO: generate dynamically
29+
)
2830
from pytest_plugins.pytest_hive.hive_info import ClientFile, HiveInfo
2931

30-
from .exceptions import EXCEPTION_MAPPERS
31-
from .timing import TimingData
32+
from .helpers.exceptions import EXCEPTION_MAPPERS
33+
from .helpers.timing import TimingData
3234

3335
logger = logging.getLogger(__name__)
3436

src/pytest_plugins/consume/simulators/engine/test_via_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from ethereum_test_fixtures import BlockchainEngineFixture
1010
from ethereum_test_rpc import EngineRPC, EthRPC
1111
from ethereum_test_rpc.types import ForkchoiceState, JSONRPCError, PayloadStatusEnum
12-
from pytest_plugins.consume.simulators.exceptions import GenesisBlockMismatchExceptionError
12+
from pytest_plugins.consume.simulators.helpers.exceptions import GenesisBlockMismatchExceptionError
1313
from pytest_plugins.logging import get_logger
1414

15-
from ..timing import TimingData
15+
from ..helpers.timing import TimingData
1616

1717
logger = get_logger(__name__)
1818

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Helper classes and functions for consume hive simulators."""

src/pytest_plugins/consume/simulators/rlp/test_via_rlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
from ethereum_test_fixtures import BlockchainFixture
1111
from ethereum_test_rpc import EthRPC
12-
from pytest_plugins.consume.simulators.exceptions import GenesisBlockMismatchExceptionError
12+
from pytest_plugins.consume.simulators.helpers.exceptions import GenesisBlockMismatchExceptionError
1313

14-
from ..timing import TimingData
14+
from ..helpers.timing import TimingData
1515

1616
logger = logging.getLogger(__name__)
1717

src/pytest_plugins/execute/rpc/hive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
Withdrawal,
4040
)
4141
from ethereum_test_types import Requests
42-
from pytest_plugins.consume.simulators.ruleset import ruleset
42+
from pytest_plugins.consume.simulators.helpers.ruleset import ruleset
4343

4444

4545
class HashList(RootModel[List[Hash]]):

0 commit comments

Comments
 (0)