Replace, fork or copy sharedmock
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the dependency entry in requirements/local.in and its use in documentcloud/common/serverless/tests/test_error_handling.py. Inspect how sharedmock supports mocks across process boundaries, then compare the options in the issue: fork it, bring the helpers into the codebase, or find a replacement. Done means those tests no longer depend on the unmaintained third-party repository and still cover the expected behavior.
由索引模型根据 Issue 内容生成。
描述
sharedmock is installed from a third-party git repo (elritsch/python-sharedmock) that hasn't been updated since 2017.
https://github.com/MuckRock/documentcloud/blob/fe9be7f12d525eb90defbe7035a4bcd45aa2b6a1/requirements/local.in#L15
In my PR to get us to python 3.15, I've pinned it to a specific commit to keep the expected behavior in case a commit gets pushed down the road which breaks expected behavior out from underneath us as it is currently unpinned on master.
https://github.com/elritsch/python-sharedmock@f12c7beb770bc67cccd52a25631e2ceee462a34a#egg=sharedmock
I avoided the PyPi distributed sharedmock because although the author is listed as Elmar Ritsch, it was packaged by other developers who don't have a ton of history on PyPi: https://pypi.org/project/sharedmock/. It's also out of date.
sharedmock is only used in documentcloud/common/serverless/tests/test_error_handling.py, for mocks that work across process boundaries. I'm not sure how to fix this, so I've left it for follow up cleanup.
If we absolutely need it, we can fork it or if it's small enough we can include the helpers in the code base..otherwise look for a replacement.
This is good cleanup follow up after the Python upgrade.
- 主要语言
- Python
- 星标
- 55
- 派生
- 10
- 平均合并
- 1 天 22 小时
- 30 天内合并 PR
- 13
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MuckRock/documentcloud 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
MuckRock/documentcloud#555 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
MuckRock/documentcloud#554 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
MuckRock/documentcloud#553 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 54/100
MuckRock/documentcloud#556 ·
维护者通常 1 天内回复
-
processing
难度 3/5 1-2 天 新手友好度 66/100
MuckRock/documentcloud#531 ·
维护者通常 1 天内回复
查看 MuckRock/documentcloud 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复