Mercurial > hg > orthanc-tests
comparison NewTests/Housekeeper/test_housekeeper.py @ 486:6144ef431512
new tests for sequences in ExtraMainDicomTags
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 28 Jun 2022 18:38:21 +0200 |
parents | 45c3fe035fed |
children | f4579c9ec73b |
comparison
equal
deleted
inserted
replaced
485:459eb688d3a1 | 486:6144ef431512 |
---|---|
43 "StorageCompression": True, | 43 "StorageCompression": True, |
44 "ExtraMainDicomTags": { | 44 "ExtraMainDicomTags": { |
45 "Patient" : ["PatientWeight", "PatientAge"], | 45 "Patient" : ["PatientWeight", "PatientAge"], |
46 "Study": ["NameOfPhysiciansReadingStudy"], | 46 "Study": ["NameOfPhysiciansReadingStudy"], |
47 "Series": ["ScanOptions"], | 47 "Series": ["ScanOptions"], |
48 "Instance": ["Rows", "Columns"] | 48 "Instance": ["Rows", "Columns", "DerivationCodeSequence"] |
49 }, | 49 }, |
50 "Housekeeper": { | 50 "Housekeeper": { |
51 "Enable": True | 51 "Enable": True |
52 } | 52 } |
53 }, | 53 }, |
109 | 109 |
110 instance_after, series_after, study_after, patient_after = self.get_infos() | 110 instance_after, series_after, study_after, patient_after = self.get_infos() |
111 | 111 |
112 # extra tags were not in DB before reconstruction | 112 # extra tags were not in DB before reconstruction |
113 self.assertNotIn("Rows", self.instance_before["MainDicomTags"]) | 113 self.assertNotIn("Rows", self.instance_before["MainDicomTags"]) |
114 self.assertNotIn("DerivationCodeSequence", self.instance_before["MainDicomTags"]) | |
114 self.assertNotIn("ScanOptions", self.series_before["MainDicomTags"]) | 115 self.assertNotIn("ScanOptions", self.series_before["MainDicomTags"]) |
115 self.assertNotIn("NameOfPhysiciansReadingStudy", self.study_before["MainDicomTags"]) | 116 self.assertNotIn("NameOfPhysiciansReadingStudy", self.study_before["MainDicomTags"]) |
116 self.assertNotIn("PatientWeight", self.patient_before["MainDicomTags"]) | 117 self.assertNotIn("PatientWeight", self.patient_before["MainDicomTags"]) |
117 | 118 |
118 # extra tags are in DB after reconstruction | 119 # extra tags are in DB after reconstruction |
119 self.assertIn("Rows", instance_after["MainDicomTags"]) | 120 self.assertIn("Rows", instance_after["MainDicomTags"]) |
121 self.assertIn("DerivationCodeSequence", instance_after["MainDicomTags"]) | |
120 self.assertIn("ScanOptions", series_after["MainDicomTags"]) | 122 self.assertIn("ScanOptions", series_after["MainDicomTags"]) |
121 self.assertIn("NameOfPhysiciansReadingStudy", study_after["MainDicomTags"]) | 123 self.assertIn("NameOfPhysiciansReadingStudy", study_after["MainDicomTags"]) |
122 self.assertIn("PatientWeight", patient_after["MainDicomTags"]) | 124 self.assertIn("PatientWeight", patient_after["MainDicomTags"]) |
123 | 125 |
124 # storage has been compressed during reconstruction | 126 # storage has been compressed during reconstruction |