diff NewTests/DelayedDeletion/test_delayed_deletion.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 ddfabe1fbee1
children ed0a51317c0b
line wrap: on
line diff
--- a/NewTests/DelayedDeletion/test_delayed_deletion.py	Thu Jun 23 14:54:48 2022 +0200
+++ b/NewTests/DelayedDeletion/test_delayed_deletion.py	Tue Jun 28 18:38:21 2022 +0200
@@ -46,14 +46,13 @@
                 config=config,
                 plugins=Helpers.plugins
             )
+        
+        print('-------------- waiting for orthanc-to-prepare-db to be available')
+        cls.o.wait_started()
 
-        populator = OrthancTestDbPopulator(
-            api_client=cls.o,
-            studies_count=2,
-            random_seed=42
-        )
-        populator.execute()
-
+        print('-------------- populating')
+        cls.o.upload_folder(here / "../../Database/Knix/Loc")
+        print('-------------- populated')
         cls.files_count_after_preparation = len(glob.glob(os.path.join(cls.get_storage_path("DelayedDeletion"), "**"), recursive=True))
 
         all_studies_ids = cls.o.studies.get_all_ids()