1、基础应用fixture用request传递参数_fixture request-CSDN博客
2、补充
@pytest.fixture(scope='session', params=["linda1","linda2","linda3"])
def test11(request):
return "我是函数" + request.param
class Test_D:
# @pytest.mark.parametrize('test11', ["1", "2", "3"], indirect=True)
def test_a(self, test11):
print("我是变量" + test11)