Skip to content

Commit

Permalink
deleted commented out references
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricdcc committed May 19, 2022
1 parent 81f3463 commit 4fce6ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
39 changes: 0 additions & 39 deletions backend/app/ro_crate_reader_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/test_apiv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

Expand Down

0 comments on commit 4fce6ff

Please sign in to comment.