Run liveserver fixture on another server
还没有人认领这个 Issue。
评估
调研方向
从所引用的 pytest_flask/live_server.py 行开始,该行会启动 live server,并将当前的 app.run() 流程与 waitress serve(app) 示例进行比较。确定如何覆盖或配置启动方法,然后验证 liveserver fixture 可以使用替代 server,同时保留其现有行为。
由索引模型根据 Issue 内容生成。
描述
I use the liveserver fixture in the testing suite for my app. I have recently switched my app to run using waitress in the production environment. To run using waitress, I do something similar to:
from waitress import serve
app = create_app()
serve(app)
This uses serve rather than app.run(). I'd really like to be able to easily run the live server fixture using this same format. As far as I can tell, the relevant line of code is here. It would be nice to be able to override or configure how this runs.
- 主要语言
- Python
- 星标
- 499
- 派生
- 93
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pytest-dev/pytest-flask 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 35/100
pytest-dev/pytest-flask#190 · 1 条评论 · 1 个 reaction ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
pytest-dev/pytest-flask#187 · 7 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 45/100
pytest-dev/pytest-flask#175 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
pytest-dev/pytest-flask#163 · 1 条评论 · 1 个 reaction ·
-
stale
难度 5/5 一周以上 新手友好度 20/100
pytest-dev/pytest-flask#103 ·
查看 pytest-dev/pytest-flask 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
spec-kitty/spec-kitty#5319 ·
维护者通常 1 天内回复
-
backend::vllm diffusion multimodal
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
openai/openai-agents-python#5229 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复