예제 #1
0
    def tearDownClass(self):

        locations = TestMerge._locations

        for oxid in [
                'EXTST000002', 'OF0093-C', 'OV0050-C', 'CT0001-C', 'CT0002-C'
        ]:
            try:
                looked_up = TestBase.getDAO(
                ).download_sampling_events_by_os_attr('oxford_id', oxid)
                looked_up = looked_up.sampling_events[0]

                TestBase.deleteSamplingEvent(looked_up, locations)

                looked_up = TestBase.getDAO(
                ).download_original_samples_by_attr('oxford_id', oxid)
                looked_up = looked_up.original_samples[0]

                TestBase.getDAO().delete_original_sample(
                    looked_up.original_sample_id)

            except ApiException as err:
                print(err)
                pass

        TestBase.deleteStudies(['9030', '9031'], locations)

        TestBase.deleteEventSets([
            'oxford_merge', 'pf6_merge', 'pv3_merge', 'roma_dump',
            'roma_MNF00001', 'sanger-lims_merge'
        ], locations)

        TestBase.tearDownSSR(locations)
        TestBase.tearDownLocations(locations)
예제 #2
0
    def tearDownClass(self):

        looked_up = TestBase.getDAO().download_sampling_events_by_os_attr('oxford_id', '123456')
        looked_up = looked_up.sampling_events[0]

        TestBase.getDAO().delete_sampling_event(looked_up.sampling_event_id)

        looked_up = TestBase.getDAO().download_original_samples_by_attr('oxford_id', '123456')
        looked_up = looked_up.original_samples[0]

        TestBase.getDAO().delete_original_sample(looked_up.original_sample_id)

        TestBase.deleteEventSets(['multiple_study'], TestSampling_Event._locations)

        TestBase.tearDownLocations(TestSampling_Event._locations)