fix: test embeddings missing fixture [LET-4062] (#4244)
fix: test embeddings missing fixture
This commit is contained in:
@@ -4,6 +4,7 @@ import os
|
||||
|
||||
import pytest
|
||||
|
||||
from letta.config import LettaConfig
|
||||
from letta.llm_api.llm_client import LLMClient
|
||||
from letta.schemas.embedding_config import EmbeddingConfig
|
||||
from letta.server.server import SyncServer
|
||||
@@ -20,6 +21,15 @@ embedding_configs = [
|
||||
]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def server():
|
||||
config = LettaConfig.load()
|
||||
config.save()
|
||||
|
||||
server = SyncServer()
|
||||
return server
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def default_organization(server: SyncServer):
|
||||
"""Fixture to create and return the default organization."""
|
||||
|
||||
Reference in New Issue
Block a user