def test_experiment_group_outputs_path_creation_deletion(self): experiment = ExperimentFactory(user=self.project.user, project=self.project, experiment_group=self.experiment_group) create_experiment_outputs_path(experiment.unique_name) experiment_outputs_path = get_experiment_outputs_path(experiment.unique_name) experiment_group_outputs_path = get_experiment_group_outputs_path( self.experiment_group.unique_name) assert os.path.exists(experiment_outputs_path) is True assert os.path.exists(experiment_group_outputs_path) is True delete_experiment_group_outputs(self.experiment_group.unique_name) assert os.path.exists(experiment_outputs_path) is False assert os.path.exists(experiment_group_outputs_path) is False
def test_experiment_group_outputs_path_creation_deletion(self): experiment = ExperimentFactory(user=self.project.user, project=self.project, experiment_group=self.experiment_group) create_experiment_outputs_path(experiment.unique_name) experiment_outputs_path = get_experiment_outputs_path( experiment.unique_name) experiment_group_outputs_path = get_experiment_group_outputs_path( self.experiment_group.unique_name) assert os.path.exists(experiment_outputs_path) is True assert os.path.exists(experiment_group_outputs_path) is True delete_experiment_group_outputs(self.experiment_group.unique_name) assert os.path.exists(experiment_outputs_path) is False assert os.path.exists(experiment_group_outputs_path) is False
def outputs_path(self): if self.experiment: from libs.paths.experiments import get_experiment_outputs_path return get_experiment_outputs_path( experiment_name=self.experiment.unique_name, original_name=self.experiment.original_unique_name, cloning_strategy=self.experiment.cloning_strategy) if self.experiment_group: from libs.paths.experiment_groups import get_experiment_group_outputs_path return get_experiment_group_outputs_path( experiment_group_name=self.experiment_group.unique_name) from libs.paths.projects import get_project_outputs_path return get_project_outputs_path(project_name=self.project.unique_name)