test_gitlab.py 文件源码

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

项目:tracboat 作者: nazavode 项目源码 文件源码
def test_connectionbase():
        # Temporarily disable ABC checks
        with patch.multiple(ConnectionBase, __abstractmethods__=set()):
            with pytest.raises(TypeError):
                ConnectionBase()
            c = ConnectionBase('project')
            assert c.project_name == 'project'
            assert not c.project_namespace
            assert c.project_qualname == 'project'
            c = ConnectionBase('ns/project')
            assert c.project_name == 'project'
            assert c.project_namespace == 'ns'
            assert c.project_qualname == 'ns/project'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号