def client(request):
import memesocial
memesocial.init('memesocial.config.testingConfig')
client = memesocial.app.test_client()
with memesocial.app.app_context():
try:
memesocial.db.drop_tables(memesocial.all_tables)
except OperationalError:
# This occurs when the table does not exist
pass
memesocial.db.create_tables(memesocial.all_tables)
return client
评论列表
文章目录