我使用来模拟API客户端的多个方法。@pytest.fixture(scope='function', autouse=True) with patch.multiplemethod2=MagicMock(return_value=fixture2),
method3=MagicMock(return_value=fixture3)) as mocks:
some_application.selectAll() else:
How can I mock the parameter pytestpython test_class.py #这里我模拟了作为参数发送的some_application对象。我还模拟了some_application.header、some_application.send_values和some_application.s