| 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: |