MCPcopy
hub / github.com/tornadoweb/tornado / setUp

Method setUp

tornado/testing.py:384–392  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

382 """
383
384 def setUp(self) -> None:
385 super().setUp()
386 sock, port = bind_unused_port()
387 self.__port = port
388
389 self.http_client = self.get_http_client()
390 self._app = self.get_app()
391 self.http_server = self.get_http_server()
392 self.http_server.add_sockets([sock])
393
394 def get_http_client(self) -> AsyncHTTPClient:
395 return AsyncHTTPClient()

Callers

nothing calls this directly

Calls 6

get_http_clientMethod · 0.95
get_appMethod · 0.95
get_http_serverMethod · 0.95
bind_unused_portFunction · 0.85
add_socketsMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected