-
Notifications
You must be signed in to change notification settings - Fork 4
Modification of the CLI to include the use of ElabFTW methods. #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
1fae8fc
07c60ec
473cd59
6332ece
801d860
92eb98f
7f1fb46
12ead0c
4852afa
7189400
0aa423e
d274b89
9919efa
ca54b10
32458df
f9c6dff
83b0ef3
a34c482
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,3 +50,10 @@ def test_download(initialize_test_dir): | |
| stdout=subprocess.PIPE) | ||
| assert 'error' not in str(result.stdout) | ||
| assert pathlib.Path(output_file).exists() | ||
|
|
||
| # download with Elabftw server | ||
| result = subprocess.run(['RedCapBridge', 'download', SERVER_CONFIG_YAML, '--server', 'elabftw', '232'], | ||
killianrochet marked this conversation as resolved.
Show resolved
Hide resolved
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here you are assuming the content of experiment id 232 on the server. However this won't work for another elab server or when the server is cleaned or someone manually deletes that experiment. It would be better to upload a known experiment first to then test the download function on that new experiment. Ideally you would also remove that experiment again from the server afterwards to keep everything in a clean state. |
||
| stdout=subprocess.PIPE) | ||
| assert 'error' not in str(result.stdout) | ||
| assert pathlib.Path(output_file).exists() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.