import asyncio
from app.services import locket
import sys

async def test_resolve():
    print("Resolving huhuhuhu...")
    try:
        uid, avatar, name = await locket.resolve_uid_with_avatar("huhuhuhu")
        print("UID:", uid)
        print("Avatar:", avatar)
        print("Name:", name)
    except Exception as e:
        print("Error:", e)

if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(test_resolve())
