From 971783ce89c79624cbd57d98d25d4919e439edbd Mon Sep 17 00:00:00 2001 From: DanCardin Date: Wed, 6 Mar 2024 09:31:04 -0500 Subject: [PATCH] fix: cli loading mechanism. --- pyproject.toml | 2 +- src/pytest_mock_resources/cli.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2357738..6ece8a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pytest-mock-resources" -version = "2.10.0" +version = "2.10.1" description = "A pytest plugin for easily instantiating reproducible mock resources." authors = [ "Omar Khan ", diff --git a/src/pytest_mock_resources/cli.py b/src/pytest_mock_resources/cli.py index cde8e93..2b9f668 100644 --- a/src/pytest_mock_resources/cli.py +++ b/src/pytest_mock_resources/cli.py @@ -12,6 +12,7 @@ class StubPytestConfig: pmr_multiprocess_safe = False pmr_cleanup_container = False + pmr_docker_client = None class option: # noqa: N801 pmr_multiprocess_safe = False @@ -28,7 +29,8 @@ def main(): parser = create_parser() args = parser.parse_args() - load_entrypoints(args.load) + if args.load: + load_entrypoints(args.load) pytestconfig = StubPytestConfig()