File size: 476 Bytes
732b14f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)