Skip to content

Commit 9fed1c8

Browse files
committed
lazily load the plugins 'solc.solc' and 'filler.static_filler'
1 parent 9d819a0 commit 9fed1c8

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

pytest-check-eip-versions.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ addopts =
1111
-p pytest_plugins.spec_version_checker.spec_version_checker
1212
-p pytest_plugins.concurrency
1313
-p pytest_plugins.filler.pre_alloc
14-
-p pytest_plugins.solc.solc
1514
-p pytest_plugins.filler.filler
1615
-p pytest_plugins.shared.execute_fill
1716
-p pytest_plugins.forks.forks

pytest-execute-hive.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ addopts =
1111
-p pytest_plugins.concurrency
1212
-p pytest_plugins.execute.sender
1313
-p pytest_plugins.execute.pre_alloc
14-
-p pytest_plugins.solc.solc
1514
-p pytest_plugins.execute.rpc.hive
1615
-p pytest_plugins.execute.execute
1716
-p pytest_plugins.shared.execute_fill

pytest-execute.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ addopts =
1212
-p pytest_plugins.concurrency
1313
-p pytest_plugins.execute.sender
1414
-p pytest_plugins.execute.pre_alloc
15-
-p pytest_plugins.solc.solc
1615
-p pytest_plugins.execute.execute
1716
-p pytest_plugins.shared.execute_fill
1817
-p pytest_plugins.execute.rpc.remote_seed_sender

src/pytest_plugins/filler/filler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,11 @@ def fixture_collector(
764764
Return configured fixture collector instance used for all tests
765765
in one test module.
766766
"""
767+
# Dynamically load the 'static_filler' and 'solc' plugins if needed
768+
if request.config.getoption("fill_static_tests_enabled"):
769+
request.config.pluginmanager.import_plugin("pytest_plugins.filler.static_filler")
770+
request.config.pluginmanager.import_plugin("pytest_plugins.solc.solc")
771+
767772
fixture_collector = FixtureCollector(
768773
output_dir=fixture_output.directory,
769774
flat_output=fixture_output.flat_output,

0 commit comments

Comments
 (0)