MCPcopy Create free account
hub / github.com/Vinyzu/Botright / start

Method start

tests/server.py:133–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 pass
132
133 def start(self) -> None:
134 request_subscribers: Dict[str, asyncio.Future] = {}
135 auth: Dict[str, Tuple[str, str]] = {}
136 csp: Dict[str, str] = {}
137 routes: Dict[str, Callable[[TestServerRequest], Any]] = {}
138 gzip_routes: Set[str] = set()
139 self.request_subscribers = request_subscribers
140 self.auth = auth
141 self.csp = csp
142 self.routes = routes
143 self.gzip_routes = gzip_routes
144 self.static_path = _dirname / "assets"
145 factory = TestServerFactory()
146 factory.server_instance = self
147 self.listen(factory)
148
149 async def wait_for_request(self, path: str) -> TestServerRequest:
150 if path in self.request_subscribers:

Callers 3

startMethod · 0.45
run_around_testsFunction · 0.45
__ainit__Method · 0.45

Calls 2

listenMethod · 0.95
TestServerFactoryClass · 0.85

Tested by 1

run_around_testsFunction · 0.36