comparison 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
comparison
equal deleted inserted replaced
485:459eb688d3a1 486:6144ef431512
44 config_path=config_path, 44 config_path=config_path,
45 storage_name="DelayedDeletion", 45 storage_name="DelayedDeletion",
46 config=config, 46 config=config,
47 plugins=Helpers.plugins 47 plugins=Helpers.plugins
48 ) 48 )
49
50 print('-------------- waiting for orthanc-to-prepare-db to be available')
51 cls.o.wait_started()
49 52
50 populator = OrthancTestDbPopulator( 53 print('-------------- populating')
51 api_client=cls.o, 54 cls.o.upload_folder(here / "../../Database/Knix/Loc")
52 studies_count=2, 55 print('-------------- populated')
53 random_seed=42
54 )
55 populator.execute()
56
57 cls.files_count_after_preparation = len(glob.glob(os.path.join(cls.get_storage_path("DelayedDeletion"), "**"), recursive=True)) 56 cls.files_count_after_preparation = len(glob.glob(os.path.join(cls.get_storage_path("DelayedDeletion"), "**"), recursive=True))
58 57
59 all_studies_ids = cls.o.studies.get_all_ids() 58 all_studies_ids = cls.o.studies.get_all_ids()
60 # delete all studies and exit Orthanc one seconds later 59 # delete all studies and exit Orthanc one seconds later
61 cls.o.studies.delete(orthanc_ids = all_studies_ids) 60 cls.o.studies.delete(orthanc_ids = all_studies_ids)