Beispiel #1
0
    def setUp(self):
        self.initialize()
        initialize_db()
        institutes_fpath = join(TEST_DATA_DIR, 'institutes.json')
        load_institutes_from_file(institutes_fpath)
        accessions_fpath = join(TEST_DATA_DIR, 'accessions.json')
        load_accessions_from_file(accessions_fpath)
        studies_fpath = join(TEST_DATA_DIR, 'studies.json')
        load_studies_from_file(studies_fpath)
        fpath = join(TEST_DATA_DIR, 'observation_units.json')
        load_observation_unit_from_file(fpath)

        scale_fpath = join(TEST_DATA_DIR, 'scales.json')
        load_scales_from_file(scale_fpath)

        trait_fpath = join(TEST_DATA_DIR, 'traits.json')
        load_traits_from_file(trait_fpath)

        fpath = join(TEST_DATA_DIR, 'observation_variables.json')
        load_observation_variables_from_file(fpath)

        fpath = join(TEST_DATA_DIR, 'observations.json')
        load_observations_from_file(fpath,
                                    obs_group='OBS1',
                                    user=self.crf_user)
Beispiel #2
0
 def setUp(self):
     self.initialize()
     initialize_db()
     institutes_fpath = join(TEST_DATA_DIR, 'institutes.json')
     load_institutes_from_file(institutes_fpath)
     accessions_fpath = join(TEST_DATA_DIR, 'accessions.json')
     load_accessions_from_file(accessions_fpath)
     studies_fpath = join(TEST_DATA_DIR, 'studies.json')
     load_studies_from_file(studies_fpath)
     fpath = join(TEST_DATA_DIR, 'observation_units.json')
     load_observation_unit_from_file(fpath)
Beispiel #3
0
 def setUp(self):
     self.initialize()
     initialize_db()
     studies_fpath = join(TEST_DATA_DIR, 'studies.json')
     load_studies_from_file(studies_fpath)