Mock.call_args and Mock.call_args_list not propagated to parent Mock
未關閉
還沒有人認領這個 Issue。
stdlib
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
| BPO | 38505 |
|---|---|
| Nosy | @phmc, @tirkarthi |
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 2019-10-17.12:23:54.924>
labels = []
title = 'Mock.call_args and Mock.call_args_list not propagated to parent Mock'
updated_at = <Date 2019-10-28.20:47:49.330>
user = 'https://bugs.python.org/CarisMoses'
bugs.python.org fields:
activity = <Date 2019-10-28.20:47:49.330>
actor = 'pconnell'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2019-10-17.12:23:54.924>
creator = 'Caris Moses'
dependencies = []
files = []
hgrepos = []
issue_num = 38505
keywords = []
message_count = 1.0
messages = ['354841']
nosy_count = 3.0
nosy_names = ['pconnell', 'xtreak', 'Caris Moses']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue38505'
versions = []
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
該 issue 指出 Mock.call_args 和 Mock.call_args_list 是受影響的行為,但沒有提及原始檔案、測試或進入點。首先定位 unittest.mock 的 Mock 實作和現有的呼叫追蹤測試,然後重現標題所描述的父子 Mock 情況。傳播行為得到修正並由測試涵蓋後,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100