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

Method test_file_not_found

tests/chat/test_attachments.py:244–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

242 assert "a,b,c" in att.content_blocks[0]["text"]
243
244 def test_file_not_found(self):
245 with pytest.raises(FileNotFoundError):
246 process_local_file("/nonexistent/file.png")
247
248 def test_not_a_file(self, tmp_path):
249 with pytest.raises(ValueError, match="Not a file"):

Callers

nothing calls this directly

Calls 1

process_local_fileFunction · 0.90

Tested by

no test coverage detected