MagicMock

Pythonのunittest.Mockでスタブを作って単体テストする

  • 自作クラスに対して、unittest.mock.MagicMockを使ってモックを作成してテストする。
tender6admin
26 sec read