# HG changeset patch # User Alain Mazy # Date 1728462201 -7200 # Node ID f2d3d7c701ec1313defb5649d38a64ccfac6591e # Parent 998f83ddd4dec6277774b7d7d63781b11606cebf ResponseContent diff -r 998f83ddd4de -r f2d3d7c701ec Tests/Tests.py --- a/Tests/Tests.py Tue Oct 08 17:51:56 2024 +0200 +++ b/Tests/Tests.py Wed Oct 09 10:23:21 2024 +0200 @@ -11232,7 +11232,6 @@ 'RequestedTags': ['StudyDate'] }) - # backward compat for Expand = True at instance level self.assertIn('ID', a[0]) # the ID is always in the response self.assertIn('Type', a[0]) # the Type is always in the response self.assertIn('RequestedTags', a[0]) # the RequestedTags are always in the response as soon as you have requested them @@ -11241,6 +11240,21 @@ self.assertIn('UncompressedSize', a[0]['Attachments'][0]) + # 'internal check': make sure we get the SOPClassUID even when we do not request the Metadata + a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Instances', + 'Query' : { + 'SeriesDescription' : 'T*' + }, + 'ResponseContent' : [], + 'RequestedTags': ['SOPClassUID'] + }) + + self.assertIn('ID', a[0]) # the ID is always in the response + self.assertIn('Type', a[0]) # the Type is always in the response + self.assertIn('RequestedTags', a[0]) # the RequestedTags are always in the response as soon as you have requested them + self.assertIn('SOPClassUID', a[0]['RequestedTags']) + + def test_extended_find_full(self): if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # TODO: remove HasExtendedFind once find-refactoring branch has been merged