Esempio n. 1
0
 def run(self):
     print(vars(threading.local()))
     s = SimpleTable()
     s.col_1 = self.string
     dbsession.add(s)
     sleep(self.sleep)
     if self.commit:
         dbsession.commit()
     else:
         dbsession.rollback()
Esempio n. 2
0
 def run(self):
     print(vars(threading.local()))
     s = SimpleTable()
     s.col_1 = self.string
     dbsession.add(s)
     sleep(self.sleep)
     if self.commit:
         dbsession.commit()
     else:
         dbsession.rollback()
Esempio n. 3
0
 def tearDown(self):
     dbsession.rollback()
     connection.conn.drop_tables()
Esempio n. 4
0
 def tearDown(self):
     dbsession.rollback()
     connection.conn.drop_tables()