Skip to content

Commit

Permalink
There is no reason not to test that
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasia committed Jan 3, 2025
1 parent 741a103 commit 2f47d00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/experimental/components/test_embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ async def test_text_chunk_embedder_run(embedder: MagicMock) -> None:
assert chunk.metadata is not None
assert "embedding" in chunk.metadata.keys()
assert isinstance(chunk.metadata["embedding"], list)
for i in chunk.metadata["embedding"]:
assert isinstance(i, float)

0 comments on commit 2f47d00

Please sign in to comment.