MCPcopy
hub / github.com/sanic-org/sanic / test_num_workers

Function test_num_workers

tests/test_cli.py:214–223  ·  view source on GitHub ↗
(num: int, cmd: tuple[str, ...], caplog, port)

Source from the content-addressed store, hash-verified

212 ),
213)
214def test_num_workers(num: int, cmd: tuple[str, ...], caplog, port):
215 command = ["fake.server.app", *cmd, f"-p={port}"]
216 lines = capture(command, caplog)
217
218 if num == 1:
219 expected = "mode: production, single worker"
220 else:
221 expected = f"mode: production, w/ {num} workers"
222
223 assert expected in lines
224
225
226@pytest.mark.parametrize("cmd", ("--debug",))

Callers

nothing calls this directly

Calls 1

captureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…