def tearDown(self): StdoutCheck.tearDown(self) TestCaseUtils.tearDown(self) unittest.TestCase.tearDown(self) rmtree(self.root_dir) gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists gclient_scm.SVNWrapper.BinaryExists = self._original_SVNBinaryExists
def tearDown(self): try: rmtree(self.root_dir) StdoutCheck.tearDown(self) TestCaseUtils.tearDown(self) unittest.TestCase.tearDown(self) finally: # TODO(maruel): Use auto_stub.TestCase. gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists
def setUp(self): TestCaseUtils.setUp(self) unittest.TestCase.setUp(self) self.url = 'git://foo' self.root_dir = tempfile.mkdtemp() self.relpath = '.' self.base_path = join(self.root_dir, self.relpath) self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path) StdoutCheck.setUp(self)
def tearDown(self): try: rmtree(self.root_dir) StdoutCheck.tearDown(self) TestCaseUtils.tearDown(self) unittest.TestCase.tearDown(self) finally: # TODO(maruel): Use auto_stub.TestCase. gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists gclient_scm.SVNWrapper.BinaryExists = self._original_SVNBinaryExists
def setUp(self): TestCaseUtils.setUp(self) unittest.TestCase.setUp(self) self.url = 'git://foo' self.root_dir = tempfile.mkdtemp() self.relpath = '.' self.base_path = join(self.root_dir, self.relpath) self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path) StdoutCheck.setUp(self) self._original_GitBinaryExists = gclient_scm.GitWrapper.BinaryExists self._original_SVNBinaryExists = gclient_scm.SVNWrapper.BinaryExists gclient_scm.GitWrapper.BinaryExists = staticmethod(lambda : True) gclient_scm.SVNWrapper.BinaryExists = staticmethod(lambda : True)
def setUp(self): TestCaseUtils.setUp(self) unittest.TestCase.setUp(self) self.url = 'git://foo' # The .git suffix allows gclient_scm to recognize the dir as a git repo # when cloning it locally self.root_dir = tempfile.mkdtemp('.git') self.relpath = '.' self.base_path = join(self.root_dir, self.relpath) self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path) StdoutCheck.setUp(self) self._original_GitBinaryExists = gclient_scm.GitWrapper.BinaryExists gclient_scm.GitWrapper.BinaryExists = staticmethod(lambda : True)
def setUp(self): TestCaseUtils.setUp(self) unittest.TestCase.setUp(self) self.url = 'git://foo' # The .git suffix allows gclient_scm to recognize the dir as a git repo # when cloning it locally self.root_dir = tempfile.mkdtemp('.git') self.relpath = '.' self.base_path = join(self.root_dir, self.relpath) self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path) StdoutCheck.setUp(self) self._original_GitBinaryExists = gclient_scm.GitWrapper.BinaryExists self._original_SVNBinaryExists = gclient_scm.SVNWrapper.BinaryExists gclient_scm.GitWrapper.BinaryExists = staticmethod(lambda : True) gclient_scm.SVNWrapper.BinaryExists = staticmethod(lambda : True)
def tearDown(self): StdoutCheck.tearDown(self) TestCaseUtils.tearDown(self) unittest.TestCase.tearDown(self) rmtree(self.root_dir)