pytest-bec-e2e 4.9.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pytest-bec-e2e
3
- Version: 4.9.0
3
+ Version: 4.10.0
4
4
  Summary: BEC pytest plugin for end-to-end tests
5
5
  Project-URL: Bug Tracker, https://github.com/bec-project/bec/issues
6
6
  Project-URL: Homepage, https://github.com/bec-project/bec
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pytest-bec-e2e"
7
- version = "4.9.0"
7
+ version = "4.10.0"
8
8
  description = "BEC pytest plugin for end-to-end tests"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [
@@ -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))