(monkeypatch: pytest.MonkeyPatch)
| 368 | |
| 369 | @pytest.mark.unit |
| 370 | def 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 |
nothing calls this directly
no test coverage detected