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

Function test_host_port_localhost

tests/test_cli.py:160–166  ·  view source on GitHub ↗
(cmd: tuple[str, ...], caplog, port)

Source from the content-addressed store, hash-verified

158 ),
159)
160def test_host_port_localhost(cmd: tuple[str, ...], caplog, port):
161 cmd = [c.format(port=str(port)) for c in cmd]
162 command = ["fake.server.app", *cmd]
163 lines = capture(command, caplog)
164 expected = f"Goin' Fast @ http://localhost:{port}"
165
166 assert expected in lines
167
168
169@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

captureFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…