摘要:
cache fixture 也可以根据 request fixture关联出来 例如:request.config.cache.makedir 获取给定的name缓存路径,没有该目录就会创建, @pytest.fixture def mydata(cache): val = cache.makedi 阅读全文
posted @ 2022-06-16 18:34
zhq9
阅读(33)
评论(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
阅读(165)
评论(0)
推荐(0)

浙公网安备 33010602011771号