RICS / app /tests /test_async_llm_adapter_stub.py
StormShadow308's picture
feat: async pipeline, job queue, generation hardening, and docs
732b14f
Raw
History Blame Contribute Delete
476 Bytes
import pytest
@pytest.mark.asyncio
async def test_async_llm_adapter_stub() -> None:
from app.llm.async_llm_adapter import get_async_llm_adapter
adapter = get_async_llm_adapter()
text = await adapter.generate_section(
skeleton="X",
bullets=["a", "b", "c"],
snippets=[],
style_profile=None,
)
assert isinstance(text, str)
proof = await adapter.proofread(text="hello", bullets=["a"])
assert isinstance(proof, str)