Files
stack/tests/llm/conftest.py
kert bb1a373252
Some checks failed
Infra CI / zotero (push) Waiting to run
CI / lint (push) Successful in 1m5s
CI / notebooks-smoke (push) Successful in 2m17s
Deploy / changes (push) Successful in 23s
CI / test (push) Failing after 5m19s
Infra CI / docs (push) Successful in 1m0s
Infra CI / notebooks (push) Successful in 3m17s
Infra CI / api (push) Successful in 1m33s
Infra CI / llm (push) Successful in 1m14s
Infra CI / bcda (push) Successful in 2m13s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Infra CI / mc (push) Successful in 27s
Deploy / report (push) Has been cancelled
Deploy / bcda (push) Has been cancelled
Deploy / llm (push) Has been cancelled
Deploy / mc (push) Has been cancelled
Deploy / api (push) Has been cancelled
Deploy / docs (push) Has been cancelled
fix(llm): chat-path dossier stub moves to tests/llm/conftest; family-name words never rank dossier facts
2026-11-13 01:30:10 -05:00

22 lines
709 B
Python

"""Shared fixtures for tests/llm."""
from __future__ import annotations
from unittest.mock import patch
import pytest
@pytest.fixture(autouse=True)
def _no_real_dossier_lookup(request):
"""``dossier_evidence`` warms the real replica, which merges its ~8.6k
derived families into the process-global registry and breaks unrelated
tests (CCM conflict phrases, tests/pfs/test_families.py). Chat tests never
ask for a dossier unless they say so; mark a test ``real_dossier`` to run
the real lookup (against a temp replica)."""
if request.node.get_closest_marker("real_dossier"):
yield
return
with patch("llm.rag.dossier_evidence", return_value=None):
yield