test: update test_replay_missing_recording to match new error message

This commit is contained in:
Ashwin Bharambe 2025-10-09 14:53:42 -07:00
parent 3cdf1c69fc
commit 8954ab5e2e

View file

@ -261,7 +261,7 @@ class TestInferenceRecording:
with api_recording(mode=APIRecordingMode.REPLAY, storage_dir=str(temp_storage_dir)): with api_recording(mode=APIRecordingMode.REPLAY, storage_dir=str(temp_storage_dir)):
client = AsyncOpenAI(base_url="http://localhost:11434/v1", api_key="test") client = AsyncOpenAI(base_url="http://localhost:11434/v1", api_key="test")
with pytest.raises(RuntimeError, match="No recorded response found"): with pytest.raises(RuntimeError, match="Recording not found"):
await client.chat.completions.create( await client.chat.completions.create(
model="llama3.2:3b", messages=[{"role": "user", "content": "This was never recorded"}] model="llama3.2:3b", messages=[{"role": "user", "content": "This was never recorded"}]
) )