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()
Beispiel #2
0
 def tearDown(self):
     db.session.remove() # Delete the database after the test
     db.drop_all()
 def tearDown(self):
     db.session.remove()
     db.drop_all()