Esempio n. 1
0
 def tearDown(self):
     db.session.query(CheckoutHistory).delete()
     db.session.query(Book).delete()
     db.session.query(Office).delete()
     db.session.commit()
     db.session.remove()
     db.drop_all()
Esempio n. 2
0
 def tearDown(self):
     db.session.remove() # Delete the database after the test
     db.drop_all()
Esempio n. 3
0
 def tearDown(self):
     db.session.remove()
     db.drop_all()