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

Function test_mock_llm_is_deterministic

tests/test_providers.py:122–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121@pytest.mark.unit
122def test_mock_llm_is_deterministic() -> None:
123 llm = MockLLM()
124 a = llm.generate("hello", system="sys")
125 b = llm.generate("hello", system="sys")
126 c = llm.generate("hello", system="different-sys")
127 assert isinstance(a, LLMResponse)
128 assert a.text == b.text
129 assert a.text != c.text
130 assert a.provider == "mock"
131 assert a.model == "mock-llm"
132
133
134@pytest.mark.unit

Callers

nothing calls this directly

Calls 2

generateMethod · 0.95
MockLLMClass · 0.90

Tested by

no test coverage detected