MCPcopy Create free account
hub / github.com/AutoPackAI/autopack / test_async_llm

Function test_async_llm

tests/test_pack_use.py:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16@pytest.mark.asyncio
17async def test_async_llm():
18 async def mock_allm(text_in: str):
19 return text_in.upper() + "!"
20
21 pack = SummarizationPack(allm=mock_allm)
22
23 assert await pack.arun(text="some text") == "SUMMARIZE THE FOLLOWING TEXT:\nSOME TEXT!"
24
25
26def test_noop():

Callers

nothing calls this directly

Calls 2

SummarizationPackClass · 0.90
arunMethod · 0.80

Tested by

no test coverage detected