Convert tests using a list of tests to use pytest fixtures
還沒有人認領這個 Issue。
評估
研究方向
從 tests/test_resource.py 第 1464 行附近開始,接著檢查其他由一個方法迴圈處理多個測試案例的位置。閱讀現有的 pytest 測試結構,並在修改之前執行相關測試。完成的標準是每個項目都透過 fixture 作為獨立的 pytest 測試執行,且測試套件仍然通過。
由索引模型根據 Issue 內容生成。
描述
The tests in https://github.com/aboutcode-org/commoncode/blob/878be6140deac30e2b95fb0fad9eb8feca015fc8/tests/test_resource.py#L1464 and a few other places are a single method that runs many tests in a loop.
We should instead us e a pytest fixtures to run many test functions, one for each entry.
- 主要語言
- Python
- 星號
- 4
- 分支
- 25
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aboutcode-org/commoncode 的其他 Issue
-
Consider that Resource.parent can be None when removing resources from the codebase可能已有人在做 @Mirochill 於 177 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
aboutcode-org/commoncode#84 ·
-
Click 8.5.0: omitted boolean flags incorrectly trigger conflicting_options validation可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 66/100
aboutcode-org/commoncode#112 ·
-
難度 4/5 3-5 天 新手友好度 35/100
aboutcode-org/commoncode#102 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
aboutcode-org/commoncode#101 · 1 則留言 ·
-
mass-scan: Create library to collect a whole project version from Software Heritage可能重新可做 @chinyeungli 於 264 天前認領,目前沒有進行中的 PR。 未關閉
aboutcode-org/commoncode#77 · 7 則留言 · 已指派 1 人 ·
查看 aboutcode-org/commoncode 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
維護者通常 4 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
mohanraj00/entelos#200 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 68/100
-
sweep
難度 2/5 1-3 小時 新手友好度 85/100
bketelsen/truenas-mcp#77 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 86/100
sandbox-quantum/switch#2163 ·
維護者通常 1 天內回覆