Mercurial > hg > orthanc-tests
changeset 447:72be948dfe5c
fix test_upload
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 20 Feb 2022 16:30:01 +0100 |
parents | 9184e6cb215a |
children | 63f475995400 |
files | Tests/Tests.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Wed Feb 09 21:08:05 2022 +0100 +++ b/Tests/Tests.py Sun Feb 20 16:30:01 2022 +0100 @@ -247,7 +247,12 @@ if IsOrthancVersionAbove(_REMOTE, 1, 10, 0): attachmentInfo = DoGet(_REMOTE, '/instances/%s/attachments/dicom/info' % instance) - self.assertEqual(sizeDummyCT, attachmentInfo['CompressedSize']) + + if isCompressed: + self.assertGreater(sizeDummyCT, attachmentInfo['CompressedSize']) + else: + self.assertEqual(sizeDummyCT, attachmentInfo['CompressedSize']) + self.assertEqual(sizeDummyCT, attachmentInfo['UncompressedSize']) self.assertIn('Uuid', attachmentInfo) self.assertEqual(1, attachmentInfo['ContentType'])