本文整理汇总了Python中jarn.mkrelease.scm.SCMFactory.get_scm方法的典型用法代码示例。如果您正苦于以下问题:Python SCMFactory.get_scm方法的具体用法?Python SCMFactory.get_scm怎么用?Python SCMFactory.get_scm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jarn.mkrelease.scm.SCMFactory
的用法示例。
在下文中一共展示了SCMFactory.get_scm方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testGetFromSandbox
# 需要导入模块: from jarn.mkrelease.scm import SCMFactory [as 别名]
# 或者: from jarn.mkrelease.scm.SCMFactory import get_scm [as 别名]
def testGetFromSandbox(self):
scms = SCMFactory()
self.assertEqual(scms.get_scm(None, self.packagedir).name, 'git')
示例2: testGetFromFileUrl
# 需要导入模块: from jarn.mkrelease.scm import SCMFactory [as 别名]
# 或者: from jarn.mkrelease.scm.SCMFactory import get_scm [as 别名]
def testGetFromFileUrl(self):
scms = SCMFactory()
self.assertEqual(scms.get_scm(None, 'file://'+self.packagedir).name, 'git')
示例3: testGetFromSshUrl
# 需要导入模块: from jarn.mkrelease.scm import SCMFactory [as 别名]
# 或者: from jarn.mkrelease.scm.SCMFactory import get_scm [as 别名]
def testGetFromSshUrl(self):
scms = SCMFactory()
self.assertEqual(scms.get_scm(None, '[email protected]:Jarn/jarn.mkrelease').name, 'git')
示例4: testGetFromUrl
# 需要导入模块: from jarn.mkrelease.scm import SCMFactory [as 别名]
# 或者: from jarn.mkrelease.scm.SCMFactory import get_scm [as 别名]
def testGetFromUrl(self):
scms = SCMFactory()
self.assertEqual(scms.get_scm(None, 'git://jarn.com/public').name, 'git')
示例5: testGetFromType
# 需要导入模块: from jarn.mkrelease.scm import SCMFactory [as 别名]
# 或者: from jarn.mkrelease.scm.SCMFactory import get_scm [as 别名]
def testGetFromType(self):
scms = SCMFactory()
self.assertEqual(scms.get_scm('git', self.packagedir).name, 'git')
示例6: testGetFromSandbox
# 需要导入模块: from jarn.mkrelease.scm import SCMFactory [as 别名]
# 或者: from jarn.mkrelease.scm.SCMFactory import get_scm [as 别名]
def testGetFromSandbox(self):
scms = SCMFactory()
self.destroy(name='svn')
self.assertEqual(scms.get_scm(None, self.packagedir).name, 'hg')