MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / test_check_embedding_error

Function test_check_embedding_error

tests/test_shared.py:104–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103
104async def test_check_embedding_error() -> None:
105 result = await check_embedding(_StubErrEmbedder())
106 assert result.dim is None
107 assert result.error is not None
108 assert result.error.startswith("RuntimeError:")
109 assert "boom" in result.error
110 # The full traceback is captured so `ccc doctor` can surface it for debugging.
111 assert result.traceback is not None
112 assert "Traceback (most recent call last):" in result.traceback
113 assert "boom" in result.traceback
114
115
116async def test_check_embedding_forwards_params() -> None:

Callers

nothing calls this directly

Calls 2

check_embeddingFunction · 0.90
_StubErrEmbedderClass · 0.85

Tested by

no test coverage detected