MCPcopy
hub / github.com/encode/uvicorn / test_get_subprocess

Function test_get_subprocess

tests/test_subprocess.py:19–28  ·  tests/test_subprocess.py::test_get_subprocess
()

Source from the content-addressed store, hash-verified

17
18
19def test_get_subprocess() -> None:
20 fdsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
21 fd = fdsock.fileno()
22 config = Config(app=app, fd=fd)
23 config.load()
24
25 process = get_subprocess(config, server_run, [fdsock])
26 assert isinstance(process, SpawnProcess)
27
28 fdsock.close()
29
30
31def test_subprocess_started() -> None:

Callers

nothing calls this directly

Calls 4

loadMethod · 0.95
ConfigClass · 0.90
get_subprocessFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected