MagicStack / MagicStack/asyncpg
Update documentation to cover testing using pytest
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 8.1k
- 派生
- 469
- 平均合并
- 18 分钟
- 30 天内合并 PR
- 4
描述
Please add a section in your documentation on how to test code that uses pool, fetch, executemany etc using pytest. I could not find anything on stackoverflow or issues where is a slight reference somewhere to TempCluster but no examples whatsoever. Are you supposed to mock this library or create an actual database while testing. Would be super helpful for future readers
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看现有文档以及 issue 中提到的简要 TempCluster 参考。添加用于测试 pool、fetch 和 executemany 用法的 pytest 指导和示例,包括文档中说明的在使用 mocking 和使用实际数据库之间的选择。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- postgresql, python
- 领域
- databases, documentation, testing
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100