assert eval(test_input) == expected. 第二种方法,使用pytest hook 批量加参数化:. # conftest.py. def pytest_generate_tests(metafunc):.
確定! 回上一頁