MCPcopy
hub / github.com/Bogdanp/dramatiq / test_cli_worker_fork_timeout_invalid_str

Function test_cli_worker_fork_timeout_invalid_str

tests/test_cli.py:358–378  ·  view source on GitHub ↗
(start_cli)

Source from the content-addressed store, hash-verified

356
357@skip_on_windows
358def test_cli_worker_fork_timeout_invalid_str(start_cli):
359 proc = start_cli(
360 "tests.test_cli:broker",
361 extra_args=[
362 "--processes",
363 "1",
364 "--threads",
365 "1",
366 "--worker-fork-timeout",
367 "tests",
368 ],
369 stdout=PIPE,
370 stderr=STDOUT,
371 )
372 proc.wait(60)
373
374 # The process return code should be 2
375 assert proc.returncode == 2
376
377 # And the output should contain an error
378 assert b"worker-fork-timeout be a number." in proc.stdout.read()
379
380
381@skip_on_windows

Callers

nothing calls this directly

Calls 3

start_cliFunction · 0.85
readMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected