Example #1
0
 def test_comp_csv_reader_type_format_false(self):
     """Csv read with format unspecified"""
     tmp = DataReader(data=data_paths['csv_gz']) \
         .read(delim=',')
     self.assertIs(type(tmp), list)
Example #2
0
 def test_sql_insert_reader_type_format_true(self):
     """Sql read with format specified"""
     tmp = DataReader(data=data_paths['sql'],
                      f_format='sql') \
         .read(sql_create=False)
     self.assertIs(type(tmp), list)
Example #3
0
 def test_sql_create_reader_type_format_false(self):
     """Sql read with format unspecified"""
     tmp = DataReader(data=data_paths['sql_cr']) \
         .read(sql_create=True)
     self.assertIs(type(tmp), list)
Example #4
0
 def test_yaml_reader_type_format_false(self):
     """Yaml read with format unspecified"""
     tmp = DataReader(data=data_paths['yaml']).read()
     self.assertIs(type(tmp), list)
Example #5
0
 def test_json_reader_type_format_false(self):
     """Json read with format unspecified"""
     tmp = DataReader(data=data_paths['json_arr']).read()
     self.assertIs(type(tmp), list)
Example #6
0
 def test_csv_reader_type_format_true(self):
     """Csv read with format specified"""
     tmp = DataReader(data=data_paths['csv'],
                      f_format='csv').read(delim=',')
     self.assertIs(type(tmp), list)
Example #7
0
 def test_comp_yaml_reader_type_format_true(self):
     """Yaml read with format specified"""
     tmp = DataReader(data=data_paths['yaml_gz'],
                      f_format='yaml.gz') \
         .read()
     self.assertIs(type(tmp), list)
Example #8
0
 def test_comp_json_reader_type_format_true(self):
     """Json read with format specified"""
     tmp = DataReader(data=data_paths['json_gz'],
                      f_format='json.gz') \
         .read()
     self.assertIs(type(tmp), list)