The mocker fixture returns pytest_mock.MockerFixture which can be used to annotate test functions: from pytest_mock import MockerFixture def test_foo ...
確定! 回上一頁