changeset 689:870fcd19560f

fix tests for mainline
author Alain Mazy <am@orthanc.team>
date Thu, 12 Sep 2024 10:04:35 +0200
parents b58f639aee60
children 84b7444330a2
files Tests/Tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Sep 11 21:20:48 2024 +0200
+++ b/Tests/Tests.py	Thu Sep 12 10:04:35 2024 +0200
@@ -3007,7 +3007,7 @@
         self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/patients&since=10' % i))
         self.assertRaises(Exception, lambda: DoGet(_REMOTE, '/patients&limit=10' % i))
 
-        if IsOrthancVersionAbove(_REMOTE, 1, 12, 5):   # with ExtendedFind, the limit=0 means no-limit like in /tools/find
+        if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and DoGet(_REMOTE, '/system')['ApiVersion'] >= 25:   # with ExtendedFind, the limit=0 means no-limit like in /tools/find
             self.assertEqual(2, len(DoGet(_REMOTE, '/patients?since=0&limit=0')))
             self.assertEqual(1, len(DoGet(_REMOTE, '/patients?since=1&limit=0')))
             self.assertEqual(0, len(DoGet(_REMOTE, '/patients?since=2&limit=0')))