def teardown_method(self): if not check_docker_inactive(test_datmo_dir): self.__setup() self.environment_controller = EnvironmentController() for env_id in list(set(self.environment_ids)): if not self.environment_controller.delete(env_id): raise Exception
def teardown_method(self): if not check_docker_inactive(test_datmo_dir): self.project_controller = ProjectController() if self.project_controller.is_initialized: self.environment_controller = EnvironmentController() for env_id in list(set(self.environment_ids)): if not self.environment_controller.delete(env_id): raise Exception
def wrapper(self, *args, **kwargs): controller_obj = controller_class() if controller_obj.environment_driver.type == "docker": if check_docker_inactive(controller_obj.home): Helper.echo( __("error", "general.environment.docker.na")) return return function(self, *args, **kwargs)
def wrapper(self, *args, **kwargs): controller_obj = controller_class() if controller_obj.environment_driver.type == "docker": # TODO: abstract the datmo_directory_name if check_docker_inactive(controller_obj.home, ".datmo"): Helper.echo( __("error", "general.environment.docker.na")) return return function(self, *args, **kwargs)
def teardown_method(self): if not check_docker_inactive(test_datmo_dir): self.docker_environment_driver.remove(self.image_name, force=True)
def teardown_method(self): # TODO: abstract the datmo_directory_name if not check_docker_inactive(test_datmo_dir, ".datmo"): self.docker_environment_driver.remove(self.image_name, force=True)