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

Function test_cli_worker_fork_timeout_invalid_string

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

Source from the content-addressed store, hash-verified

332
333@skip_on_windows
334def test_cli_worker_fork_timeout_invalid_string(start_cli):
335 proc = start_cli(
336 "tests.test_cli:broker",
337 extra_args=[
338 "--processes",
339 "1",
340 "--threads",
341 "1",
342 "--worker-fork-timeout",
343 "tests",
344 ],
345 stdout=PIPE,
346 stderr=STDOUT,
347 )
348 proc.wait(60)
349
350 # The process return code should be 2
351 assert proc.returncode == 2
352
353 # And the output should contain an error
354 assert b"worker-fork-timeout be a number." in proc.stdout.read()
355
356
357@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