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()
def redis(self): from fractalis import redis, sync yield redis sync.cleanup_all()