Decorate unit tests requiring network access w/ conditional skip

未關閉
#751 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
testing-qa

研究方向

從關於 pull request #747 的討論的第二段開始,找出依賴線上存取的少數測試。新增網路存取檢查和條件式跳過機制,以便在網際網路存取受限且 URL 存取不穩定的情況下開發測試套件;完成標準是這些測試在無法使用時會被跳過。

由索引模型根據 Issue 內容生成。

描述

testing

See the second paragraph of https://github.com/NCAS-CMS/cf-python/pull/747#discussion_r1537494667. In short, to aid with development with limited internet access and help with issues of flaky URL access, we can create a small helper function to check for network access and use that to conditional skip tests which rely on being online, which are the minority of tests.

主要語言
Python
星號
150
分支
23
平均合併
1 天 11 小時
30 天內合併 PR
2

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NCAS-CMS/cf-python 的其他 Issue

查看 NCAS-CMS/cf-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。