test: без живых вызовов LLM в тестах #76

Merged
Eleboba merged 1 commits from fix/tests-no-live-llm into dev 2026-10-04 15:08:23 +03:00
Owner

Что меняется

Тесты больше не ходят в настоящий LLM, даже если в локальном .env лежит OPENROUTER_API_KEY: autouse-фикстура в tests/conftest.py выключает агента. С ключом локально падало 6 тестов диалога и тратились деньги.

🤖 Generated with Claude Code

## Что меняется Тесты больше не ходят в настоящий LLM, даже если в локальном `.env` лежит `OPENROUTER_API_KEY`: autouse-фикстура в `tests/conftest.py` выключает агента. С ключом локально падало 6 тестов диалога и тратились деньги. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Eleboba added 1 commit 2026-10-04 15:06:18 +03:00
test: never call a live LLM from tests, whatever the local .env says
CI / ruff · pytest (pull_request) Successful in 1m50s
05b8bc3e7e
With OPENROUTER_API_KEY in a developer's .env the chat agent switched on in dialog tests (real API calls,
spent money, flaky results). An autouse fixture turns the agent off; agent tests pass explicit providers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eleboba merged commit 37f119610d into dev 2026-10-04 15:08:23 +03:00
Eleboba deleted branch fix/tests-no-live-llm 2026-10-04 15:08:24 +03:00
Sign in to join this conversation.