예제 #1
0
 def tearDown(self):
     Customer.delete().execute()
     DB.close()
예제 #2
0
def setup_db():
    """ Sets up database for test cases """
    DB.drop_tables([Customer])
    DB.close()
    DB.create_tables([Customer])
    DB.close()