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()