Mercurial > hg > orthanc-tests
comparison Tests/Run.py @ 289:4a70411ac9ad
test_storescu_transcoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 May 2020 11:12:06 +0200 |
parents | 943166deebcb |
children | 192665e6113f |
comparison
equal
deleted
inserted
replaced
288:7419c10e9edd | 289:4a70411ac9ad |
---|---|
103 config = re.sub(r'("RegisteredUsers"\s*:)\s*{', r'\1 { "alice" : "orthanctest"', config) | 103 config = re.sub(r'("RegisteredUsers"\s*:)\s*{', r'\1 { "alice" : "orthanctest"', config) |
104 config = re.sub(r'("DicomAssociationCloseDelay"\s*:)\s*[0-9]*', r'\1 0', config) | 104 config = re.sub(r'("DicomAssociationCloseDelay"\s*:)\s*[0-9]*', r'\1 0', config) |
105 config = re.sub(r'("DicomModalities"\s*:)\s*{', r'\1 { "orthanc" : [ "%s", "%s", %s ]' % | 105 config = re.sub(r'("DicomModalities"\s*:)\s*{', r'\1 { "orthanc" : [ "%s", "%s", %s ]' % |
106 (args.aet, args.server, args.dicom), config) | 106 (args.aet, args.server, args.dicom), config) |
107 | 107 |
108 # New to test transcoding over DICOM (1.7.0) | |
109 config = re.sub(r'("RleTransferSyntaxAccepted"\s*:)\s*true', r'\1 false', config) | |
110 | |
111 | |
108 with open(CONFIG, 'wt') as f: | 112 with open(CONFIG, 'wt') as f: |
109 f.write(config) | 113 f.write(config) |
110 | 114 |
111 localOrthanc = ExternalCommandThread([ | 115 localOrthanc = ExternalCommandThread([ |
112 'Orthanc', CONFIG, #'--verbose', | 116 'Orthanc', CONFIG, #'--verbose', |