Add __qualname__ for attributes of Mock instances
未關閉
還沒有人認領這個 Issue。
3.9 (EOL)
tests
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
| BPO | 32952 |
|---|---|
| Nosy | @voidspace, @s-kostyuk, @tirkarthi |
| Files |
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 2018-02-25.19:52:11.900>
labels = ['type-feature', 'tests', '3.9']
title = 'Add __qualname__ for attributes of Mock instances'
updated_at = <Date 2019-12-13.11:03:26.962>
user = 'https://github.com/s-kostyuk'
bugs.python.org fields:
activity = <Date 2019-12-13.11:03:26.962>
actor = 'xtreak'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Tests']
creation = <Date 2018-02-25.19:52:11.900>
creator = 's_kostyuk'
dependencies = []
files = ['47462']
hgrepos = []
issue_num = 32952
keywords = []
message_count = 2.0
messages = ['312849', '358327']
nosy_count = 3.0
nosy_names = ['michael.foord', 's_kostyuk', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue32952'
versions = ['Python 3.9']
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先檢視隨附的 qualname_for_mocks.py 範例和 unittest.mock 模組,以了解 Mock 目前的行為和預期的行為。找出相關的 Mock 屬性處理邏輯和現有測試;當行為與範例一致且有測試涵蓋時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- testing
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100