Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
eossr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ESCAPE2020
WP3
eossr
Merge requests
!57
eossr upload unique function
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
eossr upload unique function
eossr_upload
into
master
Overview
18
Commits
63
Pipelines
41
Changes
1
Merged
Vuillaume
requested to merge
eossr_upload
into
master
3 years ago
Overview
1
Commits
63
Pipelines
41
Changes
1
Expand
unique function to upload to the ossr regardless of new record or new version
unit test
update doc and snippets
check if the record does not already exist in case record id not passed
remove previous scripts and snippets
Edited
3 years ago
by
Enrique Garcia
0
0
Merge request reports
Viewing commit
9397e225
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9397e225
come on
· 9397e225
vuillaut
authored
3 years ago
eossr/scripts/tests/test_scripts.py
+
2
−
2
Options
@@ -50,11 +50,11 @@ def test_help_all_scripts(script):
def
test_eossr_upload
(
tmpdir
):
_
,
path_test_filename
=
tempfile
.
mkstemp
(
dir
=
tmpdir
,
text
=
'
Hello World
'
)
file_handle
,
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
'
)
file_handle
,
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
)
Loading