Writing unit tests for an app using this SDK
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- documentation, testing
调研方向
首先查看 issue #1052 中关于测试的讨论以及 SDK 的现有文档。记录对 SDK 集成进行单元测试的受支持方法,包括是否提供可复用的 fixture 或 mock,以及一个完整的 pytest 示例应涵盖哪些内容。
由索引模型根据 Issue 内容生成。
描述
I have seen mentions of unit tests in some issues like this one: https://github.com/slackapi/python-slack-sdk/issues/1052
But the documentation does not mention how we can write unit tests in our code if we integrate the slack sdk in our code base.
We use pytest along with moto3 to mock AWS APIs, for example. Is there something similar we can do for this slack sdk or do we have to make our own fixtures to make the unit tests work?
- 主要语言
- Python
- 星标
- 4k
- 派生
- 857
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 17
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
slackapi/python-slack-sdk 的其他 Issue
-
needs info server-side-issue
难度 4/5 3-5 天 新手友好度 35/100
slackapi/python-slack-sdk#1961 · 3 条评论 ·
维护者通常 1 天内回复
-
auto-triage-skip discussion
难度 5/5 一周以上 新手友好度 35/100
slackapi/python-slack-sdk#1940 · 2 条评论 ·
维护者通常 1 天内回复
-
chat_postMessage silently forwards thread_id to the API, so a threaded reply posts to the channel未关闭auto-triage-skip enhancement
难度 4/5 3-5 天 新手友好度 48/100
slackapi/python-slack-sdk#1923 · 2 条评论 ·
维护者通常 1 天内回复
-
auto-triage-skip bug python web-client
难度 3/5 1-2 天 新手友好度 52/100
slackapi/python-slack-sdk#1853 · 2 条评论 ·
维护者通常 1 天内回复
-
auto-triage-skip bug server-side-issue
难度 3/5 1-2 天 新手友好度 68/100
slackapi/python-slack-sdk#1847 · 5 条评论 ·
维护者通常 1 天内回复
查看 slackapi/python-slack-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-2 天 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 7 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
lmstudio-ai/mlx-engine#376 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
pyiron/bagofholding#166 ·