Exemple #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)
Exemple #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()
Exemple #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()
Exemple #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)
 def _load_task_factory(self):
     return LoadingTask(manager=LoadingManager(
         application=self.application))
Exemple #6
0
 def _load_task_factory(self):
     lm = self.application.get_service(LoadingManager)
     lm.db.connect()
     return LoadingTask(manager=lm)