unittest.mock.patch() cannot properly mock methods
未關閉
還沒有人認領這個 Issue。
3.10
3.7 (EOL)
3.8 (EOL)
3.9 (EOL)
stdlib
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 558
描述
| BPO | 42556 |
|---|---|
| Nosy | @cjw296, @voidspace, @mariocj89, @tirkarthi, @CendioOssman |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2020-12-03.14:41:06.568>
labels = ['3.8', '3.7', 'library', '3.9', '3.10']
title = 'unittest.mock.patch() cannot properly mock methods'
updated_at = <Date 2020-12-16.17:12:39.719>
user = 'https://github.com/CendioOssman'
bugs.python.org fields:
activity = <Date 2020-12-16.17:12:39.719>
actor = 'mariocj89'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2020-12-03.14:41:06.568>
creator = 'CendioOssman'
dependencies = []
files = []
hgrepos = []
issue_num = 42556
keywords = []
message_count = 2.0
messages = ['382415', '383189']
nosy_count = 5.0
nosy_names = ['cjw296', 'michael.foord', 'mariocj89', 'xtreak', 'CendioOssman']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue42556'
versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 unittest.mock.patch() 進入點和原始 BPO issue 42556 開始。payload 沒有指出來源檔案、測試、重現步驟或預期行為,因此首先要釐清方法 mocking 目前如何失敗,以及應保留哪些行為;完成條件應包括一個已達成共識的回歸測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing-qa
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100