MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / test_mock_llm_stream_matches_sync_text

Function test_mock_llm_stream_matches_sync_text

tests/test_providers.py:135–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134@pytest.mark.unit
135def 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

Callers

nothing calls this directly

Calls 3

generateMethod · 0.95
stream_generateMethod · 0.95
MockLLMClass · 0.90

Tested by

no test coverage detected