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

Class TestServer

tests/server.py:206–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205
206class TestServer:
207 def __init__(self) -> None:
208 self.server = HTTPServer()
209
210 def start(self) -> None:
211 self.server.start()
212 self.thread = threading.Thread(target=lambda: reactor.run(installSignalHandlers=False))
213 self.thread.start()
214
215 def stop(self) -> None:
216 reactor.stop()
217 self.thread.join()
218
219 def reset(self) -> None:
220 self.server.reset()
221
222
223test_server = TestServer()

Callers 1

server.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected