Esempio n. 1
0
 def setUp(self):
     self.event = {"local": True}
     self.event['local-path'] = str(
         Path(__file__).parent.absolute()) + "/../example/"
     self.config = setup_pipeline_config(self.event)
     self.translate_curate_json_node_class = TranslateCurateJsonNode(
         self.config)
Esempio n. 2
0
 def setUp(self):
     self.event = {"local": True}
     self.event['local-path'] = str(Path(__file__).parent.absolute()) + "/../example/"
     self.config = setup_pipeline_config(self.event)
     self.transform_marc_json_class = TransformMarcJson()
     filename = local_folder + 'test/sample_marc.json'
     with open(filename, 'r') as input_source:
         self.marc_record_as_json = json.load(input_source)
 def setUp(self):
     self.event = {"local": True}
     self.event['local-path'] = str(
         Path(__file__).parent.absolute()) + "/../example/"
     self.config = setup_pipeline_config(self.event)
     self.config['test'] = True
     self.config['website-metadata-tablename'] = 'some_random_table_name'
     self.files_api_class = FilesApi(self.event, self.config)
Esempio n. 4
0
 def setUp(self):
     self.event = {"local": True}
     self.event['local-path'] = str(
         Path(__file__).parent.absolute()) + "/../example/"
     self.config = setup_pipeline_config(self.event)
     if not self.event["local"]:
         google_config = load_config_ssm(
             self.config['google_keys_ssm_base'])
         self.config.update(google_config)
         self.google_credentials = json.loads(
             self.config["museum-google-credentials"])
     else:
         self.google_credentials = {}
     self.harvest_metadata_rules_class = HarvestMetadataRules(
         self.google_credentials, True)
 def setUp(self):
     self.event = {"local": True}
     self.event['local-path'] = str(Path(__file__).parent.absolute()) + "/../example/"
     self.config = setup_pipeline_config(self.event)
     marc_records_url = "https://alephprod.library.nd.edu/aleph_tmp/marble.mrc"
     self.harvest_marc_class = HarvestAlephMarc(self.config, self.event, marc_records_url, datetime.now())
 def setUp(self):
     self.event = {"local": True}
     self.event['local-path'] = str(Path(__file__).parent.absolute()) + "/../example/"
     self.config = setup_pipeline_config(self.event)
     self.time_to_break = datetime.now() + timedelta(seconds=self.config['seconds-to-allow-for-processing'])