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)
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)))
def test_git_clean_true(self): self.assertTrue(bt.is_git_clean(dummypath), bt.git_status(dummypath))
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)))