コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
 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)
コード例 #4
0
 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
コード例 #5
0
 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)
コード例 #6
0
 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)
コード例 #7
0
 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)
コード例 #8
0
 def tearDown(self):
   StdoutCheck.tearDown(self)
   TestCaseUtils.tearDown(self)
   unittest.TestCase.tearDown(self)
   rmtree(self.root_dir)