conftest.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:girder_worker 作者: girder 项目源码 文件源码
def test_item(girder_client, private_folder):
    try:
        item = girder_client.createItem(private_folder['_id'], 'test')
        yield item
    finally:
        if file is not None:
            girder_client.delete('item/%s' % item['_id'])


# pytest hooks for ordering test items after they have been collected
# and ensuring tests marked with sanitycheck run first.
# pytest_runtest_makereport and pytest_runtest_setup are used to xfail
# all tests if any of the sanitychecks fail.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号