def setUp(self): # self.t = LoadingTask() db = isotope_manager_factory().db lm = LoadingManager(db=db) # lm.irradiation = 'NM-251' # lm.level = 'H' self.t = LoadingTask(manager=lm)
class LoadingTest(unittest.TestCase): def setUp(self): # self.t = LoadingTask() db = isotope_manager_factory().db lm = LoadingManager(db=db) # lm.irradiation = 'NM-251' # lm.level = 'H' self.t = LoadingTask(manager=lm) def testSave(self): lm = self.t.manager c = lm.make_canvas('1401') self.t.canvas = c self.t.save_loading()
def _load_task_factory(self): return LoadingTask(manager=LoadingManager( application=self.application))
def _load_task_factory(self): lm = self.application.get_service(LoadingManager) lm.db.connect() return LoadingTask(manager=lm)