async def test_embed_many_success(self, mock_post, model):
        """Test successful embedding of multiple texts."""
        # Mock response
        mock_response = MagicMock()
        mock_response.raise_for_status = AsyncMock()
        mock_response.json.return_value = {
            "vectors": [[0.1, 0.2, 0.3] * 128, [0.4, 0.5, 0.6] * 128]
        }
        mock_post.return_value = mock_response

        texts = ["Text 1", "Text 2"]
        result = await model.embed_many(texts)

        # Verify the result
        assert isinstance(result, list)
        assert len(result) == 2
        assert all(len(vec) == 384 for vec in result)

        # Verify the API call - updated to match the actual implementation
        # The method is making individual calls for each text rather than a batch call
        assert mock_post.call_count == 2
        mock_post.assert_any_call(f"{model.inference_url}/vectors/", json={"text": "Text 1"})
        mock_post.assert_any_call(f"{model.inference_url}/vectors/", json={"text": "Text 2"})
Test successful embedding of multiple texts.
backend/tests/platform/embedding_models/test_local_text2vec.py