Files
wecom_it_smart_desk/test_neo4j.py
T

17 lines
375 B
Python
Raw Normal View History

import asyncio
import sys
sys.path.insert(0, '/app')
from app.services.neo4j_client import get_neo4j_client
async def test():
client = await get_neo4j_client()
print(f'Neo4j client: {client}')
if client:
healthy = await client.health_check()
print(f'Health check: {healthy}')
else:
print('Neo4j client is None')
asyncio.run(test())