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