test_delta.py 文件源码

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

项目:ufodiff 作者: source-foundry 项目源码 文件源码
def test_ufodiff_delta_class_instantiation_branch_with_ufo_filter():
    make_testing_branch()

    try:
        deltaobj = Delta('.', ['Font-Regular.ufo'], is_branch_test=True, compare_branch_name='testing_branch')
        assert deltaobj.is_commit_test is False
        assert deltaobj.is_branch_test is True
        assert deltaobj.compare_branch_name == "testing_branch"
        assert deltaobj.commit_number == "0"
        assert len(deltaobj.ufo_directory_list) == 1
        assert deltaobj.ufo_directory_list[0] == "Font-Regular.ufo"
    except Exception as e:
        delete_testing_branch()
        pytest.fail(e)

    delete_testing_branch()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号