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

Function test_sync_llm

tests/test_pack_use.py:7–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_sync_llm():
8 def mock_llm(text_in: str):
9 return text_in.upper()
10
11 pack = SummarizationPack(llm=mock_llm)
12
13 assert pack.run(text="some text") == "SUMMARIZE THE FOLLOWING TEXT:\nSOME TEXT"
14
15
16@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

SummarizationPackClass · 0.90
runMethod · 0.80

Tested by

no test coverage detected