Mock and MagicMock objects create all attributes and methods as you access them and store details of how they have been used. You can configure them, to specify return values or limit what attributes are available, and then make assertions about how they have been used
mock
最新推荐文章于 2022-12-04 07:15:00 发布