pytest-bec-e2e 4.8.1__tar.gz → 4.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pytest_bec_e2e-4.8.1 → pytest_bec_e2e-4.10.0}/PKG-INFO +1 -1
- {pytest_bec_e2e-4.8.1 → pytest_bec_e2e-4.10.0}/pyproject.toml +1 -1
- {pytest_bec_e2e-4.8.1 → pytest_bec_e2e-4.10.0}/pytest_bec_e2e/plugin.py +10 -0
- {pytest_bec_e2e-4.8.1 → pytest_bec_e2e-4.10.0}/.gitignore +0 -0
- {pytest_bec_e2e-4.8.1 → pytest_bec_e2e-4.10.0}/pytest_bec_e2e/__init__.py +0 -0
|
@@ -64,6 +64,12 @@ class LogTestTool:
|
|
|
64
64
|
@pytest.hookimpl
|
|
65
65
|
def pytest_addoption(parser):
|
|
66
66
|
parser.addoption("--start-servers", action="store_true", default=False)
|
|
67
|
+
parser.addoption(
|
|
68
|
+
"--use-subprocess-proc-worker",
|
|
69
|
+
action="store_true",
|
|
70
|
+
default=False,
|
|
71
|
+
help="Use subprocess procedure workers when starting test services.",
|
|
72
|
+
)
|
|
67
73
|
parser.addoption("--bec-redis-host", action="store", default="localhost")
|
|
68
74
|
parser.addoption("--bec-redis-cmd", action="store", default=None)
|
|
69
75
|
parser.addoption("--flush-redis", action="store_true", default=False)
|
|
@@ -170,6 +176,7 @@ def bec_redis_host_port(request, bec_redis_fixture):
|
|
|
170
176
|
|
|
171
177
|
@pytest.fixture(scope=bec_servers_scope)
|
|
172
178
|
def bec_servers(
|
|
179
|
+
request,
|
|
173
180
|
test_config_yaml_file_path,
|
|
174
181
|
bec_services_config_file_path,
|
|
175
182
|
bec_test_config_file_path,
|
|
@@ -189,6 +196,9 @@ def bec_servers(
|
|
|
189
196
|
service_config = ServiceConfigModel(
|
|
190
197
|
redis={"host": redis_host, "port": redis_port},
|
|
191
198
|
file_writer={"base_path": str(file_writer_path)},
|
|
199
|
+
procedures={
|
|
200
|
+
"use_subprocess_worker": request.config.getoption("--use-subprocess-proc-worker")
|
|
201
|
+
},
|
|
192
202
|
)
|
|
193
203
|
|
|
194
204
|
services_config_file.write(service_config.model_dump_json(indent=4))
|
|
File without changes
|
|
File without changes
|