diff --git a/backend/app/ro_crate_reader_functions.py b/backend/app/ro_crate_reader_functions.py index e717ae8..e7f54b0 100644 --- a/backend/app/ro_crate_reader_functions.py +++ b/backend/app/ro_crate_reader_functions.py @@ -108,7 +108,6 @@ def __init__(self, root_folder): def get_content_location_for(self, repo_url): """return the physical location of the local repo checkout of the given repo_url""" - #TODO 1: convert repo url to local folder https://github.com/cedricdcc/dmbon_test_profile_crate.git repo_folder = self.repo_url_to_localfolder(repo_url) # 2: check if local folder exists if(os.path.exists(repo_folder) == False): @@ -258,44 +257,6 @@ def _save_metadata(self): json.dump(self.metadata_cache, json_file) #test = MakeNewProfile(profile_id="test_new_method", logo="https://www.researchobject.org/ro-crate/assets/img/ro-crate-w-text.png" ,description= "test of the new method", repo_url="https://github.com/arms-mbon/my_bon_test_vlizrepo_crate.git") -''' -#test zone -test = rocrate_helper("C:\\Users\\cedric\\Desktop\\no importante\\ad117931652f4dccb6ef0bb3b3393cc2\\project") -test.read_metafile() -test.get_overview_metadata() - -secondtest = rocrate_helper('https://github.com/cedricdcc/test_rocrate_repo.git') -secondtest.get_all_metadata_files() -secondtest.get_ttl_files() -print(secondtest.ttlinfo) -''' - - - - - - - - - - - - - - - - - - - - - - - - - - - class Profile: """ Class to represent a selectable profile for data spaces. diff --git a/backend/tests/test_apiv1.py b/backend/tests/test_apiv1.py index f5c8688..d97cdcd 100644 --- a/backend/tests/test_apiv1.py +++ b/backend/tests/test_apiv1.py @@ -79,7 +79,7 @@ def test_make_space(): ''' Locations(root=os.path.join(os.getcwd(),'app','webtop-work-space' ,'cache')) Space(name="test_space_project", - storage_path="C:\\Users\\cedric\\Desktop\\no importante", #TODO: get better way to test out spaces storage_path + storage_path="env_variable_here", #TODO: have a env varibale ready here to be used as the test storage path ro_profile="0d972c79c8634b18b5fd13fdde8c8cb7", )