17 lines
375 B
Python
17 lines
375 B
Python
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())
|