Esempio n. 1
0
 def test_print_educations(self):
     csv_exporter.print_educations(self.documents, self.mock_printer)
     self.assertEqual(self.print_trace[0], 'postal_code,total,basic_level,total_education,matriculation_examination,vocational_diploma,bachelors_degree,graduate_degree')
     self.assertEqual(self.print_trace[1], '00510,10,100,200,300,400,500,600')
Esempio n. 2
0
def fetch_educations(file_path):
    df = read_csv(file_path)
    documents = read_csv_to_documents(df, parser.parse_education_row)
    exporter.print_educations(documents, printer)
    db_access.insert_educations(documents)
Esempio n. 3
0
def load_and_print_educations():
    educations = db_access.get_educations()
    exporter.print_educations(educations, printer)