# HG changeset patch # User Sebastien Jodogne # Date 1720726195 -7200 # Node ID e024ba9e7768f484166568c7e9af701cd594f9a1 # Parent 854640df43d3021a34ed080e71267ea62efd8b77 extended test_rest_find_limit diff -r 854640df43d3 -r e024ba9e7768 Tests/Tests.py --- a/Tests/Tests.py Sat Jul 06 11:59:44 2024 +0200 +++ b/Tests/Tests.py Thu Jul 11 21:29:55 2024 +0200 @@ -4150,6 +4150,11 @@ 'Limit' : 3 }) self.assertEqual(3, len(a)) + a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Instance', + 'Query' : { 'PatientName' : 'B*' }, + 'Limit' : 0 }) # This is an arbitrary convention + self.assertEqual(4, len(a)) + b = [] for i in range(4): a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Instance', @@ -4162,6 +4167,12 @@ # Check whether the two sets are equal through symmetric difference self.assertEqual(0, len(set(b) ^ set(brainix))) + a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Instance', + 'Query' : { 'PatientName' : 'B*' }, + 'Limit' : 1, + 'Since' : 4 }) + self.assertEqual(0, len(a)) + # Check using KNEE a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Instance', 'Query' : { 'PatientName' : 'K*' },