Exemple #1
0
 def test_get_schema(self):
     h = hone.Hone()
     actual_schema = h.get_schema(csv_A_path)
     expected_schema = test_utils.parse_json_file(json_schema_A_path)
     self.assertDictEqual(actual_schema, expected_schema)
     actual_result = h.convert(csv_A_path, actual_schema)
     expected_result = test_utils.parse_json_file(json_A_path)
     self.assertListEqual(actual_result, expected_result)
Exemple #2
0
 def test_nest_quotes_csv(self):
     h = hone.Hone()
     actual_result = h.convert(csv_C_path)
     expected_result = test_utils.parse_json_file(json_C_path)
     self.assertListEqual(actual_result, expected_result)