Exemplo n.º 1
0
 def setUp(self):
     plan_repo.purge_all_plans()
     self.plan_json1 = open('tests/orch_tests/json/plan_01.json',
                            'r').read()
     self.plan_json2 = open('tests/orch_tests/json/plan_02.json',
                            'r').read()
     self.plan_json3 = open('tests/orch_tests/json/plan_03.json',
                            'r').read()
Exemplo n.º 2
0
    def setUp(self):
        logger = logging.getLogger('scheduler.sched_svc')
        logger.setLevel(logging.DEBUG)

        # Save two plans with timed start and one without
        plan_repo.purge_all_plans()
        self.plan1_id = plan_repo.save_new_plan(open ( 'tests/scheduler_tests/json/plan_01.json', 'r' ).read ( ))
        self.plan2_id = plan_repo.save_new_plan(open ( 'tests/scheduler_tests/json/plan_03.json', 'r' ).read ( ))
        self.plan3_id = plan_repo.save_new_plan(open ( 'tests/scheduler_tests/json/plan_03.json', 'r' ).read ( ))
        self.plan4_id = plan_repo.save_new_plan(open ( 'tests/scheduler_tests/json/plan_04.json', 'r' ).read ( ))
Exemplo n.º 3
0
 def setUp(self):
     plan_repo.purge_all_plans()
     self.plan_json = open('tests/orch_tests/json/plan_01.json', 'r').read()
Exemplo n.º 4
0
 def tearDown(self):
     plan_repo.purge_all_plans()