Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def llm_disabled(self, monkeypatch: pytest.MonkeyPatch) -> None:
"""Force the LLM selector into its ``disabled`` branch."""
monkeypatch.setattr(settings, "llm_provider", None)
monkeypatch.setattr(settings, "llm_model", None)
monkeypatch.setattr(settings, "llm_model_name", None)

@pytest.mark.asyncio
async def test_stub_classifier_produces_dto(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
from src._core.domain.value_objects.embedding_config import EmbeddingConfig

_has_pydantic_ai = importlib.util.find_spec("pydantic_ai") is not None
_has_openai_embeddings = (
importlib.util.find_spec("pydantic_ai") is not None
and importlib.util.find_spec("openai") is not None
)


class TestEmbeddingConfigValueObject:
Expand Down Expand Up @@ -156,7 +160,9 @@ async def test_error_mapping_generic(self):
await adapter.embed_text("test")


@pytest.mark.skipif(not _has_pydantic_ai, reason="pydantic-ai not installed")
@pytest.mark.skipif(
not _has_openai_embeddings, reason="pydantic-ai + openai not installed"
)
class TestOpenAIBatchSplitting:
"""OpenAI 프로바이더의 배치 분할 로직 테스트."""

Expand Down
Loading