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

Function test_socket_bind

tests/test_config.py:257–262  ·  tests/test_config.py::test_socket_bind
()

Source from the content-addressed store, hash-verified

255
256
257def test_socket_bind() -> None:
258 config = Config(app=asgi_app)
259 config.load()
260 sock = config.bind_socket()
261 assert isinstance(sock, socket.socket)
262 sock.close()
263
264
265def test_ssl_config(

Callers

nothing calls this directly

Calls 4

loadMethod · 0.95
bind_socketMethod · 0.95
ConfigClass · 0.90
closeMethod · 0.45

Tested by

no test coverage detected