開発ツール¶
この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 pydoc モジュールはモジュールの内容からドキュメントを生成します。 doctest と unittest モジュールでは、自動的に実行して予想通りの出力が生成されるか確認するユニットテストを書くことができます。
この章で解説されるモジュールのリスト:
typing--- Support for type hintspydoc--- ドキュメント生成とオンラインヘルプシステム- Python 開発モード
doctest--- 対話型の Python の例をテストするunittest--- ユニットテストフレームワークunittest.mock--- モックオブジェクトライブラリunittest.mock--- 入門test--- Regression tests package for Pythontest.support--- テストのためのユーティリティ関数test.support.socket_helper--- Utilities for socket teststest.support.script_helper--- Utilities for the Python execution teststest.support.bytecode_helper--- Support tools for testing correct bytecode generationtest.support.threading_helper--- Utilities for threading teststest.support.os_helper--- Utilities for os teststest.support.import_helper--- Utilities for import teststest.support.warnings_helper--- Utilities for warnings tests