Example #1
0
 def tearDown(self):
     """
 remove database
 """
     db.session.remove()
     db.drop_all()
     os.remove(os.path.join(defaults.BASEDIR, "db/test.db"))
Example #2
0
 def tearDown(self):
     """
 remove database
 """
     db.session.remove()
     db.drop_all()
     os.remove(os.path.join(defaults.BASEDIR, "db/test.db"))
Example #3
0
def drop():
    "Drops database tables"
    if prompt_bool("Are you sure you want to lose all your data"):
        db.drop_all()
Example #4
0
 def tearDown(self):
   db.session.remove()
   db.drop_all()
Example #5
0
def drop():
  "Drops database tables"
  if prompt_bool("Are you sure you want to lose all your data"):
    db.drop_all()