You need a Mock object to call assert_called_with - monkeypatch does not provide that. You can use unittest.mock.patch with side_effect instead to achieve ...
確定! 回上一頁