From ff51104e14283e120f57ee77310e58f4abe3fff5 Mon Sep 17 00:00:00 2001 From: vuillaut <thomas.vuillaume@gmail.com> Date: Thu, 30 Sep 2021 22:31:11 +0200 Subject: [PATCH] test --- eossr/scripts/tests/test_scripts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eossr/scripts/tests/test_scripts.py b/eossr/scripts/tests/test_scripts.py index 7afc7dcb..440c6d76 100644 --- a/eossr/scripts/tests/test_scripts.py +++ b/eossr/scripts/tests/test_scripts.py @@ -53,7 +53,9 @@ def test_help_all_scripts(script): def test_eossr_upload(tmpdir): file_handle, path_test_filename = tempfile.mkstemp(dir=tmpdir, text=True) Path(path_test_filename).write_text('Hello World') - published = eossr_upload.upload(os.getenv('SANDBOX_ZENODO_TOKEN'), True, tmpdir) + published = eossr_upload.upload(zenodo_token=os.getenv('SANDBOX_ZENODO_TOKEN'), + sandbox_flag=True, + input_directory=tmpdir) record_id = published.json()['id'] file_handle, path_test_filename = tempfile.mkstemp(dir=tmpdir, text=True) Path(path_test_filename).write_text('Hello World 2') -- GitLab