-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb802b7
commit 5794945
Showing
5 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
python/tests/integration/scripts/test_run_dicom_archive_loader.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import subprocess | ||
|
||
|
||
def test(): | ||
|
||
subprocess.run([ | ||
'ls', '-R', '/data-imaging' | ||
]) | ||
|
||
subprocess.run([ | ||
'replicate_raisinbread_for_mcin_dev_vm.pl', | ||
'/data-imaging', | ||
'/data/loris', | ||
]) | ||
|
||
subprocess.run([ | ||
'ls', '-R', '/data' | ||
]) | ||
|
||
process = subprocess.run([ | ||
'run_dicom_archive_loader.py', | ||
'--profile', 'database_config.py', | ||
'--tarchive_path', '/data/loris/tarchive/DCM_2015-07-07_ImagingUpload-14-30-FoTt1K.tar', | ||
# Only one of the DICOM archive path or the upload ID should be specified | ||
# '--upload_id', '126', | ||
], capture_output=True) | ||
|
||
print(process.stdout) | ||
print(process.stderr) | ||
print(process.returncode) | ||
|
||
assert process.returncode == 0 | ||
assert process.stderr == b'' |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters