Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
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()
Ejemplo n.º 4
0
    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)
Ejemplo n.º 5
0
 def _load_task_factory(self):
     return LoadingTask(manager=LoadingManager(
         application=self.application))
Ejemplo n.º 6
0
 def _load_task_factory(self):
     lm = self.application.get_service(LoadingManager)
     lm.db.connect()
     return LoadingTask(manager=lm)