()
| 133 | |
| 134 | @pytest.mark.unit |
| 135 | def test_mock_llm_stream_matches_sync_text() -> None: |
| 136 | llm = MockLLM() |
| 137 | prompt = "hello " * 20 |
| 138 | sync = llm.generate(prompt, system="sys") |
| 139 | chunks = list(llm.stream_generate(prompt, system="sys")) |
| 140 | |
| 141 | assert chunks |
| 142 | assert "".join(chunks) == sync.text |
| 143 | |
| 144 | |
| 145 | @pytest.mark.unit |
nothing calls this directly
no test coverage detected