Skip to content

Commit 49d624a

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 4c64194 commit 49d624a

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/cli/pytest_commands/processors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ def process_args(self, args: List[str]) -> List[str]:
104104

105105
if os.getenv("HIVE_LOGLEVEL") is not None:
106106
warnings.warn("HIVE_LOG_LEVEL is not yet supported.", stacklevel=2)
107-
108-
modified_args.extend(["-p", "pytest_plugins.pytest_hive.pytest_hive"])
109-
110107
if self.command_name == "engine":
111108
modified_args.extend(["-p", "pytest_plugins.consume.simulators.engine.conftest"])
112109
elif self.command_name == "enginex":

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from ethereum_test_rpc import EngineRPC
1212

1313
pytest_plugins = (
14+
"pytest_plugins.pytest_hive.pytest_hive",
1415
"pytest_plugins.consume.simulators.base",
1516
"pytest_plugins.consume.simulators.single_test_client",
1617
"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)