def setup_class(cls):
"""
When a Test is created override the ``database`` attribute for all
the tables with a SqliteDatabase in memory.
"""
for table in TABLES:
table._meta.database = cls.TEST_DB
table.create_table(fail_silently=True)
cls.app = app.test_client()
评论列表
文章目录