Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はPythonでTDDを学ぼうとしています。残念ながら、ユニットテストに関する PEP は見つかりませんでした。
私は通常、特定のテスト トピックのセットアップと破棄を処理する 1 つのクラスを作成し、すべてのテストでそれをサブクラス化します。つまり、テストごとに 1 つのクラスがあり、テスト対象を伝える名前が付けられています。派手なものはありません。