Пример #1
0
    def destroy(self):
        """Remove all of the test environment data."""
        env = EnvironmentStub(path=self.tracdir, destroying=True)
        env.destroy_db()

        self.destroy_repo()
        if os.path.exists(self.dirname):
            rmtree(self.dirname)
Пример #2
0
 def tearDown(self):
     for repos in self._repomgr.get_real_repositories():
         repos.close()
     self._repomgr.reload_repositories()
     StorageFactory._clean()
     self.env.reset_db()
     if os.path.isdir(self.repos_path):
         rmtree(self.repos_path)
Пример #3
0
 def tearDown(self):
     for repos in self._repomgr.get_real_repositories():
         repos.close()
     self._repomgr.reload_repositories()
     StorageFactory._clean()
     self.env.reset_db()
     if os.path.isdir(self.repos_path):
         rmtree(self.repos_path)
Пример #4
0
    def destroy(self):
        """Remove all of the test environment data."""
        env = EnvironmentStub(path=self.tracdir, destroying=True)
        env.destroy_db()

        self.destroy_repo()
        if os.path.exists(self.dirname):
            rmtree(self.dirname)
Пример #5
0
 def test_no_refs_dir(self):
     self._git_init(bare=True)
     rmtree(os.path.join(self.repos_path, 'refs'))
     self._dbrepoprov.add_repository('gitrepos', self.repos_path, 'git')
     self.assertRaises(TracError, self._repomgr.get_repository, 'gitrepos')
Пример #6
0
 def tearDown(self):
     rmtree(self.env_path)
Пример #7
0
 def tearDown(self):
     rmtree(self.env_path)
Пример #8
0
 def test_no_refs_dir(self):
     self._git_init(bare=True)
     rmtree(os.path.join(self.repos_path, 'refs'))
     self._dbrepoprov.add_repository('gitrepos', self.repos_path, 'git')
     self.assertRaises(TracError, self._repomgr.get_repository, 'gitrepos')
Пример #9
0
 def tearDown(self):
     self.env.reset_db()
     if os.path.isdir(self.repos_path):
         rmtree(self.repos_path)
Пример #10
0
 def tearDown(self):
     RepositoryManager(self.env).reload_repositories()
     StorageFactory._clean()
     self.env.reset_db()
     if os.path.isdir(self.repos_path):
         rmtree(self.repos_path)
Пример #11
0
 def tearDown(self):
     self.env.reset_db()
     if os.path.isdir(self.repos_path):
         rmtree(self.repos_path)
Пример #12
0
 def tearDown(self):
     RepositoryManager(self.env).reload_repositories()
     StorageFactory._clean()
     self.env.reset_db()
     if os.path.isdir(self.repos_path):
         rmtree(self.repos_path)