Commit 26b4cc91 authored by Enrique Garcia's avatar Enrique Garcia
Browse files

in the repo, .zenodo.json file does not exist, but i need to search for it first

parent fa9a21e5
Pipeline #112091 failed with stages
in 5 minutes and 20 seconds
......@@ -97,10 +97,13 @@ class TestZenodoAPI(unittest.TestCase):
z.conversion_codemeta2zenodo()
z.search_zenodo_json_file()
assert z.exist_zenodo_metadata_file is True
zenodo_file_path = Path(ROOT_DIR) / '.zenodo.json'
assert z.path_zenodo_metadata_file == zenodo_file_path
assert zenodo_file_path.is_file()
with open(z.path_zenodo_metadata_file) as f:
json.load(f)
remove(z.path_zenodo_metadata_file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment