有时候仅仅使用一组数据是无法充分测试函数功能的,参数化测试允许传递多组数据。 import pytest @pytest.mark.parametrize("task", [Task("sleep", done=True), Task( ...
確定! 回上一頁