def run(self): # clear the SERVICES variable, which will allow to use this # directive multiple times clear_services() app_name = self.options.get('app') if app_name: app = import_module(app_name) app.main({}) # import the modules, which will populate the SERVICES variable. for module in self.options.get('modules', []): if module in MODULES: reload(MODULES[module]) else: MODULES[module] = import_module(module) names = self.options.get('services', []) service = self.options.get('service') if service is not None: names.append(service) # filter the services according to the options we got services = get_services(names=names or None, exclude=self.options.get('exclude')) return [self._render_service(s) for s in services]
def run(self): # clear the SERVICES variable, which will allow to use this # directive multiple times clear_services() app_name = self.options.get('app') if app_name: app = import_module(app_name) app.main({}) # import the modules, which will populate the SERVICES variable. for module in self.options.get('modules', []): if module in MODULES: reload(MODULES[module]) else: MODULES[module] = import_module(module) names = self.options.get('services', []) service = self.options.get('service') if service is not None: names.append(service) # filter the services according to the options we got services = get_services(names=names or None, exclude=self.options.get('exclude')) return [self._render_service(s) for s in services]
def tearDown(self): clear_services()
def tearDown(self): clear_services()
def tearDown(self): clear_services() testing.tearDown()