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

Function test_server_run

tests/test_cli.py:63–71  ·  view source on GitHub ↗
(
    appname: str, extra: Optional[str], caplog: pytest.LogCaptureFixture, port
)

Source from the content-addressed store, hash-verified

61 ),
62)
63def test_server_run(
64 appname: str, extra: Optional[str], caplog: pytest.LogCaptureFixture, port
65):
66 command = [appname, f"-p={port}"]
67 if extra:
68 command.append(extra)
69 lines = capture(command, caplog)
70
71 assert f"Goin' Fast @ http://127.0.0.1:{port}" in lines
72
73
74@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

captureFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…