Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 465:038fb852e2be
more debug info
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 19 Apr 2022 12:14:16 +0200 |
parents | 216231c18c2e |
children | fc1c3ffed470 e1867aeb57e2 |
comparison
equal
deleted
inserted
replaced
464:216231c18c2e | 465:038fb852e2be |
---|---|
2428 tmp = [ '-xf', GetDatabasePath('UnknownSopClassUid.cfg'), 'Default' ] | 2428 tmp = [ '-xf', GetDatabasePath('UnknownSopClassUid.cfg'), 'Default' ] |
2429 else: | 2429 else: |
2430 tmp = [ '-xs' ] | 2430 tmp = [ '-xs' ] |
2431 | 2431 |
2432 with open(os.devnull, 'w') as FNULL: | 2432 with open(os.devnull, 'w') as FNULL: |
2433 subprocess.check_call([ FindExecutable('storescu') ] + tmp + | 2433 try: |
2434 [ _REMOTE['Server'], str(_REMOTE['DicomPort']), | 2434 subprocess.check_call([ FindExecutable('storescu') ] + tmp + |
2435 GetDatabasePath(image) ], | 2435 [ _REMOTE['Server'], str(_REMOTE['DicomPort']), |
2436 stderr = FNULL) | 2436 GetDatabasePath(image) ], |
2437 stderr = FNULL) | |
2438 | |
2439 except subprocess.CalledProcessError as e: | |
2440 print('storescu failed with error code: %s' % str(e.returncode)) | |
2441 raise e | |
2437 | 2442 |
2438 self.assertEqual(0, len(DoGet(_REMOTE, '/patients'))) | 2443 self.assertEqual(0, len(DoGet(_REMOTE, '/patients'))) |
2439 | 2444 |
2440 if IsOrthancVersionAbove(_REMOTE, 1, 9, 0): | 2445 if IsOrthancVersionAbove(_REMOTE, 1, 9, 0): |
2441 a = DoPut(_REMOTE, '/tools/accepted-transfer-syntaxes', [ | 2446 a = DoPut(_REMOTE, '/tools/accepted-transfer-syntaxes', [ |