在定义固件时,通过 scope 参数声明作用域,可选项有: ... @pytest.fixture(scope='function') def func_scope(): pass @pytest.fixture(scope='module') def ...
確定! 回上一頁