()
| 45 | |
| 46 | |
| 47 | def start_test_server(): |
| 48 | pywebio.enable_debug() |
| 49 | |
| 50 | import tornado.ioloop |
| 51 | import tornado.web |
| 52 | from pywebio.platform.tornado import webio_handler |
| 53 | from pywebio import STATIC_PATH |
| 54 | |
| 55 | application = tornado.web.Application([ |
| 56 | (r"/", webio_handler(async_target, cdn=False)), |
| 57 | (r"/io2", webio_handler(target, cdn=False)), |
| 58 | (r"/(.*)", tornado.web.StaticFileHandler, |
| 59 | {"path": STATIC_PATH, 'default_filename': 'index.html'}) |
| 60 | ]) |
| 61 | application.listen(port=8080, address='127.0.0.1') |
| 62 | tornado.ioloop.IOLoop.current().start() |
| 63 | |
| 64 | |
| 65 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected
searching dependent graphs…