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

Method test_csv_file

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

Source from the content-addressed store, hash-verified

235 assert block["input_audio"]["format"] == "wav"
236
237 def test_csv_file(self, tmp_path):
238 csv = tmp_path / "data.csv"
239 csv.write_text("a,b,c\n1,2,3")
240 att = process_local_file(str(csv))
241 assert att.mime_type == "text/csv"
242 assert "a,b,c" in att.content_blocks[0]["text"]
243
244 def test_file_not_found(self):
245 with pytest.raises(FileNotFoundError):

Callers

nothing calls this directly

Calls 1

process_local_fileFunction · 0.90

Tested by

no test coverage detected