Tags
第 8 頁
Python
MemPalace:170 tokens 回憶所有對話,AI Agent 的長期記憶系統
pytest-mock:用 mocker fixture 讓 mock 更乾淨
Typer:用 type hint 寫 CLI,不需要記 argparse API
blinker:Python 的 signal 系統,讓模組之間不直接呼叫
polyfactory:不要手刻測試假資料,讓 type hint 自動生成
pytest 入門:assert 就夠了,不需要記 self.assertEqual
auto-venv:Fish Shell 自動啟用 Python 虛擬環境,cd 進去就好
Python Mock 踩坑:patch 要指向被測模組,不是原始模組