AI-Colab / test_cli_parity.py
A.Tuin
SPEC_2026_04_13
1f8efa1
Raw History Blame Contribute Delete
455 Bytes
import asyncio
import logging
from core.gemini_cli_executor import execute
logging.basicConfig(level=logging.DEBUG)
async def test():
# Тестовый промпт
resp = await execute(mode="console", message="Say hi", prompt_text="You are a helpful assistant", timeout=10)
assert isinstance(resp, str) and len(resp) > 0, f"Пустой ответ: {resp}"
print(f"✅ PROMPT PARITY OK: {resp[:50]}")
return True
asyncio.run(test())