test_restapiplugin.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:fauxmo-plugins 作者: n8henrie 项目源码 文件源码
def restapiplugin_target() -> Generator:
    """Simulate the endpoints triggered by RESTAPIPlugin."""
    fauxmo_device = Process(target=httpbin.core.app.run,
                            kwargs={"host": "127.0.0.1", "port": 8000},
                            daemon=True)

    fauxmo_device.start()
    time.sleep(1)

    yield

    fauxmo_device.terminate()
    fauxmo_device.join()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号