예제 #1
0
 def test_git_commit(self):
     try:
         repo = self._create_git_repo()
         self.assertEqual(bt.git_status(repo), "A  a.txt")
         bt.git_commit(repo, "1.0")
         self.assertEqual(bt.git_status(repo), "")
     finally:
         shutil.rmtree(repo)
예제 #2
0
 def test_git_commit(self):
     try:
         repo = self._create_git_repo()
         self.assertEqual(bt.git_status(repo), "A  a.txt")
         bt.git_commit(repo, "1.0")
         self.assertEqual(bt.git_status(repo), "")
     finally:
         shutil.rmtree(repo)
예제 #3
0
 def test_all_clean_true(self):
     self.assertTrue(
         bt.is_all_clean(),
         "\n%s:\n%s\n\n%s:\n%s" % (
             dummypath, bt.git_status(dummypath),
             bt.BASEDIR, bt.git_status(bt.BASEDIR)))
예제 #4
0
 def test_git_clean_true(self):
     self.assertTrue(bt.is_git_clean(dummypath),
                     bt.git_status(dummypath))
예제 #5
0
 def test_all_clean_true(self):
     self.assertTrue(
         bt.is_all_clean(),
         "\n%s:\n%s\n\n%s:\n%s" % (dummypath, bt.git_status(dummypath),
                                   bt.BASEDIR, bt.git_status(bt.BASEDIR)))
예제 #6
0
 def test_git_clean_true(self):
     self.assertTrue(bt.is_git_clean(dummypath), bt.git_status(dummypath))