Skip to content

Commit 1b80ed9

Browse files
committed
refactor(consume): move pytest_hive plugin registration to simulator conftest files
Move pytest_hive plugin registration from HiveEnvironmentProcessor to individual simulator conftest files to centralize all plugin configuration in one place per simulator.
1 parent b610953 commit 1b80ed9

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/cli/pytest_commands/processors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ def process_args(self, args: List[str]) -> List[str]:
102102
if os.getenv("HIVE_LOGLEVEL") is not None:
103103
warnings.warn("HIVE_LOG_LEVEL is not yet supported.", stacklevel=2)
104104

105-
modified_args.extend(["-p", "pytest_plugins.pytest_hive.pytest_hive"])
106-
107105
if self.command_name == "engine":
108106
modified_args.extend(["-p", "pytest_plugins.consume.simulators.engine.conftest"])
109107
elif self.command_name == "rlp":

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from ethereum_test_rpc import EngineRPC
1616

1717
pytest_plugins = (
18+
"pytest_plugins.pytest_hive.pytest_hive",
1819
"pytest_plugins.consume.simulators.base",
1920
"pytest_plugins.consume.simulators.single_test_client",
2021
"pytest_plugins.consume.simulators.test_case_description",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
TestCase = TestCaseIndexFile | TestCaseStream
1313

1414
pytest_plugins = (
15+
"pytest_plugins.pytest_hive.pytest_hive",
1516
"pytest_plugins.consume.simulators.base",
1617
"pytest_plugins.consume.simulators.single_test_client",
1718
"pytest_plugins.consume.simulators.test_case_description",

0 commit comments

Comments
 (0)