Tags
第 4 頁
Pytest
pytest-mock:用 mocker fixture 讓 mock 更乾淨
polyfactory:不要手刻測試假資料,讓 type hint 自動生成
pytest 入門:assert 就夠了,不需要記 self.assertEqual
Python Mock 踩坑:patch 要指向被測模組,不是原始模組