Exemplo n.º 1
0
 def setUp(self):
     r"""Replace Trac environment with product environment
     """
     EnvironmentTestCase.setUp(self)
     try:
         self.global_env = self.env
         self._setup_test_log(self.global_env)
         self._upgrade_mp(self.global_env)
         self._load_product_from_data(self.global_env, self.default_product)
         try:
             self.env = ProductEnvironment(self.global_env,
                                           self.default_product)
         except:
             # All tests should fail if anything goes wrong
             self.global_env.log.exception(
                 'Error creating product environment')
             self.env = None
     except:
         shutil.rmtree(self.env.path)
         raise
Exemplo n.º 2
0
 def setUp(self):
     r"""Replace Trac environment with product environment
     """
     EnvironmentTestCase.setUp(self)
     try:
         self.global_env = self.env
         self._setup_test_log(self.global_env)
         self._upgrade_mp(self.global_env)
         self._load_product_from_data(self.global_env, self.default_product)
         try:
             self.env = ProductEnvironment(self.global_env,
                                           self.default_product)
         except:
             # All tests should fail if anything goes wrong
             self.global_env.log.exception(
                 'Error creating product environment')
             self.env = None
     except:
         shutil.rmtree(self.env.path)
         raise
Exemplo n.º 3
0
    def tearDown(self):
        # Discard product environment
        self.env = self.global_env

        EnvironmentTestCase.tearDown(self)
Exemplo n.º 4
0
    def tearDown(self):
        # Discard product environment
        self.env = self.global_env

        EnvironmentTestCase.tearDown(self)