MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / test_build_embedding_explicit_hash

Function test_build_embedding_explicit_hash

tests/test_providers.py:370–376  ·  view source on GitHub ↗
(monkeypatch: pytest.MonkeyPatch)

Source from the content-addressed store, hash-verified

368
369@pytest.mark.unit
370def test_build_embedding_explicit_hash(monkeypatch: pytest.MonkeyPatch) -> None:
371 monkeypatch.setenv("PAPERFLOW_EMBED_PROVIDER", "hash")
372 monkeypatch.setenv("PAPERFLOW_EMBED_DIMENSIONS", "64")
373 embed = build_embedding_provider()
374 assert embed.name == "hash"
375 assert embed.dimensions == 64
376 assert len(embed.embed("test")) == 64
377
378
379@pytest.mark.unit

Callers

nothing calls this directly

Calls 2

build_embedding_providerFunction · 0.90
embedMethod · 0.45

Tested by

no test coverage detected