示例#1
0
 def testCreateTag(self):
     scm = Git()
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), False)
     self.assertEqual(
         scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6',
                        False), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
示例#2
0
 def testCreateAndPushRemoteTag(self):
     scm = Git(Process(quiet=True))
     self.clone()
     self.assertEqual(
         scm.create_tag(self.clonedir, '2.6', 'testpackage', '2.6', True),
         0)
     self.assertEqual(scm.tag_exists(self.clonedir, '2.6'), True)
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
示例#3
0
 def testCreateExistingTag(self):
     scm = Git(Process(quiet=True))
     self.assertEqual(
         scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6',
                        False), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
     self.assertRaises(SystemExit, scm.create_tag, self.packagedir, '2.6',
                       'testpackage', '2.6', False)
示例#4
0
 def testCreateAndPushLocalTag(self):
     scm = Git()
     self.assertEqual(
         scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', True),
         0)
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
示例#5
0
 def testTagExists(self):
     scm = Git()
     self.tag(self.packagedir, '2.6')
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
示例#6
0
 def testCreateAndPushRemoteTag(self):
     scm = Git(Process(quiet=True))
     self.clone()
     self.assertEqual(scm.create_tag(self.clonedir, "2.6", "testpackage", "2.6", True), 0)
     self.assertEqual(scm.tag_exists(self.clonedir, "2.6"), True)
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
示例#7
0
 def testTagDoesNotExist(self):
     scm = Git()
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), False)
示例#8
0
 def testCreateExistingTag(self):
     scm = Git(Process(quiet=True))
     self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", False), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
     self.assertRaises(SystemExit, scm.create_tag, self.packagedir, "2.6", "testpackage", "2.6", False)
示例#9
0
 def testCreateAndPushLocalTag(self):
     scm = Git()
     self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", True), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
示例#10
0
 def testCreateTag(self):
     scm = Git()
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), False)
     self.assertEqual(scm.create_tag(self.packagedir, "2.6", "testpackage", "2.6", False), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
示例#11
0
 def testTagExists(self):
     scm = Git()
     self.tag(self.packagedir, "2.6")
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), True)
示例#12
0
 def testTagDoesNotExist(self):
     scm = Git()
     self.assertEqual(scm.tag_exists(self.packagedir, "2.6"), False)
示例#13
0
 def testCreateAndPushLocalTag(self):
     scm = Git()
     self.assertEqual(scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', True), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)
示例#14
0
 def testCreateTag(self):
     scm = Git()
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), False)
     self.assertEqual(scm.create_tag(self.packagedir, '2.6', 'testpackage', '2.6', False), 0)
     self.assertEqual(scm.tag_exists(self.packagedir, '2.6'), True)