0
同じモジュールに複数のテストを適用した場合、テストごとにパッチを適用する必要はありませんか?すべてのテストで同じモジュールにパッチを適用
def test_1(mocker):
mocker.patch.object(module, 'method')
# run test
def test_2(mocker):
mocker.patch.object(module, 'method')
# run test
def test_3(mocker):
mocker.patch.object(module, 'method')
# run test