(self, tmp_path)
| 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" |
nothing calls this directly
no test coverage detected