()
| 15 | |
| 16 | @pytest.mark.asyncio |
| 17 | async 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 | |
| 26 | def test_noop(): |
nothing calls this directly
no test coverage detected