# -*- coding: utf-8 -*-
# embedin - A vector database that empowers AI with persistent memory,
# (C) 2023 EmbedInAI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest
from embedin.embedding.sentence_transformer import SentenceTransformerEmbedding
class TestSentenceTransformerEmbedding(unittest.TestCase):
def test_embedding_single_text(self):
embedding = SentenceTransformerEmbedding()
text = "This is a test sentence."
expected_output = embedding.
Your Task
Complete the code above, taking into account the cross-file context provided.
Your solution must work correctly with the related files in the project.