Mercurial > hg > orthanc-tests
changeset 941:3a440ee47213
update ApiVersion
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Fri, 17 Jul 2026 15:05:29 +0200 |
| parents | 0f5f43ac6876 |
| children | d1259f584f1e |
| files | NewTests/ExtraMainDicomTags/test_extra_main_dicom_tags.py NewTests/InterruptedDownloads/test_interrupted_downloads.py |
| diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/NewTests/ExtraMainDicomTags/test_extra_main_dicom_tags.py Thu Jul 02 16:28:07 2026 +0200 +++ b/NewTests/ExtraMainDicomTags/test_extra_main_dicom_tags.py Fri Jul 17 15:05:29 2026 +0200 @@ -105,7 +105,7 @@ count = int(m.get('orthanc_storage_cache_hit_count') or '0') + int(m.get('orthanc_storage_cache_miss_count') or '0') - if self.o.get_system()["ApiVersion"] >= 32: # 1.12.11+ and 32 = streaming branch + if self.o.get_system()["ApiVersion"] >= 34: # 1.13.0 and 34 = streaming branch count += int(m.get('orthanc_dicom_parser_cache_hit_count') or '0') print(f"storage access count = {count}")
--- a/NewTests/InterruptedDownloads/test_interrupted_downloads.py Thu Jul 02 16:28:07 2026 +0200 +++ b/NewTests/InterruptedDownloads/test_interrupted_downloads.py Fri Jul 17 15:05:29 2026 +0200 @@ -81,7 +81,7 @@ def test_interrupting_a_download_should_cancel_the_archive_job(self): # note: there was a regression between 1.12.10 and 1.12.11 - if self.o.is_orthanc_version_at_least(1, 12, 12) and self.o.get_system()["ApiVersion"] >= 32: # 1.12.11+ and 32 = streaming branch + if self.o.is_orthanc_version_at_least(1, 12, 12) and self.o.get_system()["ApiVersion"] >= 34: # 1.13.0 and 34 = streaming branch self.o.delete_all_content() populator = OrthancTestDbPopulator(self.o, studies_count=1, series_count=2, instances_count=200, random_seed=65) populator.execute() @@ -98,7 +98,7 @@ def test_interrupting_a_download_should_release_the_http_thread(self): # note: there was a regression between 1.12.10 and 1.12.11 - if self.o.is_orthanc_version_at_least(1, 12, 12) and self.o.get_system()["ApiVersion"] >= 32: # 1.12.11+ and 32 = streaming branch + if self.o.is_orthanc_version_at_least(1, 12, 12) and self.o.get_system()["ApiVersion"] >= 34: # 1.13.0 and 34 = streaming branch self.o.delete_all_content() populator = OrthancTestDbPopulator(self.o, studies_count=1, series_count=2, instances_count=200, random_seed=65) populator.execute()
