MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_audio_file

Method test_audio_file

tests/chat/test_attachments.py:221–228  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

219 assert "--- code.py ---" in block["text"]
220
221 def test_audio_file(self, tmp_path):
222 audio = tmp_path / "clip.mp3"
223 audio.write_bytes(b"\xff\xfb\x90\x00" + b"\x00" * 50)
224 att = process_local_file(str(audio))
225 assert att.mime_type == "audio/mpeg"
226 block = att.content_blocks[0]
227 assert block["type"] == "input_audio"
228 assert block["input_audio"]["format"] == "mp3"
229
230 def test_wav_audio(self, tmp_path):
231 audio = tmp_path / "clip.wav"

Callers

nothing calls this directly

Calls 1

process_local_fileFunction · 0.90

Tested by

no test coverage detected