摘要:
cache fixture 也可以根据 request fixture关联出来 例如:request.config.cache.makedir 获取给定的name缓存路径,没有该目录就会创建, @pytest.fixture def mydata(cache): val = cache.makedi 阅读全文
摘要:
Fixture Request 详情见: 1 获取正在执行的夹具名称 @pytest.fixture def get_request_data(request: pytest.FixtureRequest): return request.fixturename 2 获取所有活动的fixture名称 阅读全文