Exemple #1
0
 def setUp(self):
     self.env = EnvironmentStub(default_data=True,
                                enable=['trac.*', 'trachours.*'])
     self.env.path = tempfile.mkdtemp()
     setup = SetupTracHours(self.env)
     setup.upgrade_environment(db=self.env.get_db_cnx())
     self.hours_thp = TracHoursPlugin(self.env)
Exemple #2
0
 def setUp(self):
     self.env = EnvironmentStub(default_data=True,
                                enable=['trac.*', 'trachours.*'])
     self.env.path = tempfile.mkdtemp()
     setup = SetupTracHours(self.env)
     with self.env.db_transaction as db:
         setup.upgrade_environment(db=db)
     self.hours_thp = TracHoursPlugin(self.env)