diff 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
line wrap: on
line diff
--- a/NewTests/Housekeeper/test_housekeeper.py	Thu Jun 23 14:54:48 2022 +0200
+++ b/NewTests/Housekeeper/test_housekeeper.py	Tue Jun 28 18:38:21 2022 +0200
@@ -45,7 +45,7 @@
                     "Patient" : ["PatientWeight", "PatientAge"],
                     "Study": ["NameOfPhysiciansReadingStudy"],
                     "Series": ["ScanOptions"],
-                    "Instance": ["Rows", "Columns"]
+                    "Instance": ["Rows", "Columns", "DerivationCodeSequence"]
                 },
                 "Housekeeper": {
                     "Enable": True
@@ -111,12 +111,14 @@
 
         # extra tags were not in DB before reconstruction
         self.assertNotIn("Rows", self.instance_before["MainDicomTags"])
+        self.assertNotIn("DerivationCodeSequence", self.instance_before["MainDicomTags"])
         self.assertNotIn("ScanOptions", self.series_before["MainDicomTags"])
         self.assertNotIn("NameOfPhysiciansReadingStudy", self.study_before["MainDicomTags"])
         self.assertNotIn("PatientWeight", self.patient_before["MainDicomTags"])
 
         # extra tags are in  DB after reconstruction
         self.assertIn("Rows", instance_after["MainDicomTags"])
+        self.assertIn("DerivationCodeSequence", instance_after["MainDicomTags"])
         self.assertIn("ScanOptions", series_after["MainDicomTags"])
         self.assertIn("NameOfPhysiciansReadingStudy", study_after["MainDicomTags"])
         self.assertIn("PatientWeight", patient_after["MainDicomTags"])