Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

google-auth: Clean up test coverage and outdated docstrings for mTLS and Identity Pool

未關閉
#17,758 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@MahendraMula 已經在處理了。

開始於 2026年9月9日。

  • #18319 來自 @MahendraMula —— 未關閉

評估

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

研究方向

從 tests/transport/test_aio_mtls_helper.py 開始,更新 test_get_client_cert_and_key_callback_sync 的 docstring 和註解。接著結合現有測試檢查 google/auth/compute_engine/_mtls.py 和 google/auth/identity_pool.py,涵蓋 MdsMtlsAdapter.close() 以及所提到的 RefreshError 路徑。執行受影響的測試,並確認已移除過時的 TypeError 參照,且缺少的路徑已獲得涵蓋。

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

描述

auth effort: low priority: p3 testing type: cleanup

There are a few minor gaps in test coverage and test documentation that should be cleaned up in the google-auth library:

  • In tests/transport/test_aio_mtls_helper.py, the docstring and comments for test_get_client_cert_and_key_callback_sync reference a TypeError fallback that is no longer used (the code now uses inspect.isawaitable()).
  • The MdsMtlsAdapter.close() method in google/auth/compute_engine/_mtls.py lacks test coverage.
  • There are several RefreshError exception paths in google/auth/identity_pool.py (specifically around leaf certificate retrieval and parsing) that are currently missing test coverage.
主要語言
Python
星號
5.4k
分支
1.8k
平均合併
2 天 6 小時
30 天內合併 PR
197

環境準備

從這裡開始

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

googleapis/google-cloud-python 的其他 Issue

查看 googleapis/google-cloud-python 的全部 Issue

相似的 Issue

更多 Python Issue

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

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