Exemple #1
0
 def test104_csv_to_mysql_truncate_table(self):
     try:
         legoo.csv_to_mysql(mysql_host = self.mysql_host, mysql_db = self.mysql_db, \
                            mysql_table = self.mysql_table, mysql_truncate_table='Y', \
                            csv_file = self.csv_file, csv_header = 'Y', \
                            csv_delimiter=',')
     except:
         self.fail("csv_to_mysql with option mysql_truncate_table failed")
 def test104_csv_to_mysql_truncate_table(self):
     try:
         legoo.csv_to_mysql(mysql_host = self.mysql_host, mysql_db = self.mysql_db, \
                            mysql_table = self.mysql_table, mysql_truncate_table='Y', \
                            csv_file = self.csv_file, csv_header = 'Y', \
                            csv_delimiter=',')
     except:
         self.fail("csv_to_mysql with option mysql_truncate_table failed") 
Exemple #3
0
 def test102_csv_to_mysql(self):
     # test csv_to_mysql not throw exception
     try:
         legoo.csv_to_mysql(mysql_host = self.mysql_host, mysql_db = self.mysql_db, \
                            mysql_table = self.mysql_table, mysql_create_table='Y', \
                            csv_file = self.csv_file, csv_header = 'Y', \
                            csv_delimiter=',')
     except:
         self.fail("csv_to_mysql with option mysql_create failed")
 def test102_csv_to_mysql(self):
     # test csv_to_mysql not throw exception
     try:
         legoo.csv_to_mysql(mysql_host = self.mysql_host, mysql_db = self.mysql_db, \
                            mysql_table = self.mysql_table, mysql_create_table='Y', \
                            csv_file = self.csv_file, csv_header = 'Y', \
                            csv_delimiter=',')
     except:
         self.fail("csv_to_mysql with option mysql_create failed")