Skip to content
Snippets Groups Projects
Commit 9f0a3183 authored by vuillaut's avatar vuillaut
Browse files

assert file creation ok

parent c62ca541
No related branches found
No related tags found
1 merge request!57eossr upload unique function
Pipeline #138393 failed
......@@ -51,9 +51,11 @@ def test_help_all_scripts(script):
def test_eossr_upload(tmpdir):
_, path_test_filename = tempfile.mkstemp(dir=tmpdir, text='Hello World')
assert os.path.exists(path_test_filename)
published = eossr_upload.upload(os.getenv('SANDBOX_ZENODO_TOKEN'), True, tmpdir)
record_id = published.json()['id']
_, path_test_filename = tempfile.mkstemp(dir=tmpdir, text='Hello World 2')
assert os.path.exists(path_test_filename)
published = eossr_upload.upload(os.getenv('SANDBOX_ZENODO_TOKEN'), True, tmpdir, record_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment