示例#1
0
 def test_client(self):
     sync.cleanup_all()
     from fractalis import app
     app.testing = True
     with app.test_client() as test_client:
         yield test_client
         sync.cleanup_all()
示例#2
0
 def redis(self):
     from fractalis import redis, sync
     yield redis
     sync.cleanup_all()