Skip to content
Snippets Groups Projects
Commit 3722aaee authored by Enrique Garcia's avatar Enrique Garcia
Browse files

fix upload test, finally

parent bca0c44e
No related branches found
No related tags found
1 merge request!57eossr upload unique function
Pipeline #140900 failed
...@@ -61,7 +61,8 @@ def test_eossr_upload_repository(tmpdir): ...@@ -61,7 +61,8 @@ def test_eossr_upload_repository(tmpdir):
shutil.copy(Path(ROOT_DIR).joinpath('codemeta.json'), tmpdir) shutil.copy(Path(ROOT_DIR).joinpath('codemeta.json'), tmpdir)
published = eossr_upload_repository.upload(zenodo_token=os.getenv('SANDBOX_ZENODO_TOKEN'), published = eossr_upload_repository.upload(zenodo_token=os.getenv('SANDBOX_ZENODO_TOKEN'),
sandbox_flag=True, sandbox_flag=True,
upload_directory=tmpdir upload_directory=tmpdir,
force_new_record=True
) )
record_id = published.json()['id'] record_id = published.json()['id']
Path(path_test_filename).write_text('Hello World 2') Path(path_test_filename).write_text('Hello World 2')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment