Mercurial > hg > orthanc-tests
changeset 760:f90d3ea138fe
merge
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 16 Dec 2024 18:10:46 +0100 |
parents | 2beafb8513ef (current diff) dc3cc8f6e887 (diff) |
children | d8460d57adfd |
files | Tests/Tests.py |
diffstat | 2 files changed, 7 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/NewTests/PostgresUpgrades/downgrade.sh Mon Dec 16 18:10:25 2024 +0100 +++ b/NewTests/PostgresUpgrades/downgrade.sh Mon Dec 16 18:10:46 2024 +0100 @@ -4,7 +4,7 @@ apt-get update && apt-get install -y wget mercurial hg clone https://orthanc.uclouvain.be/hg/orthanc-databases -hg update -r find-refactoring +hg update -r default psql -U postgres -f /scripts/orthanc-databases/PostgreSQL/Plugins/SQL/Downgrades/Rev3bToRev2.sql # if you want to test a downgrade procedure, you may use this code ...
--- a/Tests/Tests.py Mon Dec 16 18:10:25 2024 +0100 +++ b/Tests/Tests.py Mon Dec 16 18:10:46 2024 +0100 @@ -10794,8 +10794,7 @@ def test_extended_find_order_by(self): - if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # TODO: remove HasExtendedFind once find-refactoring branch has been merged - + if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # Upload 12 instances for i in range(3): r = UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-000%d.dcm' % (i + 1)) @@ -11093,7 +11092,7 @@ def test_extended_find_parent(self): - if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # TODO: remove HasExtendedFind once find-refactoring branch has been merged + if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # Upload 12 instances for i in range(3): UploadInstance(_REMOTE, 'Knee/T1/IM-0001-000%d.dcm' % (i + 1)) @@ -11150,8 +11149,7 @@ def test_extended_find_filter_metadata(self): - if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # TODO: remove HasExtendedFind once find-refactoring branch has been merged - + if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # Upload 12 instances for i in range(3): UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-000%d.dcm' % (i + 1)) @@ -11189,7 +11187,7 @@ def test_extended_find_expand(self): - if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # TODO: remove HasExtendedFind once find-refactoring branch has been merged + if IsOrthancVersionAbove(_REMOTE, 1, 12, 5): UploadInstance(_REMOTE, 'Knee/T2/IM-0001-0001.dcm') a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', @@ -11313,8 +11311,7 @@ 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 - + if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # Upload 12 instances for i in range(3): UploadInstance(_REMOTE, 'Brainix/Flair/IM-0001-000%d.dcm' % (i + 1)) @@ -11414,7 +11411,7 @@ }) # pprint.pprint(knixInstancesSince5Limit20) - if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and HasExtendedFind(_REMOTE): # TODO: remove HasExtendedFind once find-refactoring branch has been merged + if IsOrthancVersionAbove(_REMOTE, 1, 12, 5): self.assertEqual(20, len(knixInstancesSince5Limit20)) # Orthanc actually returns LimitFindInstances + 1 resources # the first 5 from previous call shall not be in this answer for i in range(0, 5):