MCPcopy Index your code
hub / github.com/microsoft/playwright-python / reset

Method reset

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

Source from the content-addressed store, hash-verified

251 self.csp[path] = value
252
253 def reset(self) -> None:
254 self.request_subscribers.clear()
255 self.auth.clear()
256 self.csp.clear()
257 self.gzip_routes.clear()
258 self.routes.clear()
259 self._ws_handlers.clear()
260
261 def set_route(
262 self, path: str, callback: Callable[[TestServerRequest], Any]

Callers 3

resetMethod · 0.45
after_each_hookFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by 2

after_each_hookFunction · 0.36