- tests/test_compactor.py: 24 tests (estimate_tokens, extract_facts, build_summary, summarize_tool_output, compact_sections) - tests/test_key_data_extraction.py: 11 tests (extracción de tables, records, sections, modules, pages desde tool executions) - tests/test_fingerprint.py: 8 tests (deduplicación MD5, sort_keys, nested args) - tests/test_cost_calculation.py: 8 tests (pricing formula, custom pricing, rounding) - README.md: sección Tests con instrucciones de ejecución Todos offline, sin Docker/Redis/LLM. Ejecutar: python3 -m pytest tests/ -v Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 lines
315 B
Python
9 lines
315 B
Python
"""Configuracion de pytest para agenticSystem tests.
|
|
|
|
Estos tests son 100% standalone — no importan desde src/ directamente
|
|
porque el entorno de CI puede no tener las dependencias pesadas
|
|
(anthropic, tiktoken, pydantic, etc.) ni Python 3.11+.
|
|
|
|
La logica bajo test se replica o se extrae como funciones puras.
|
|
"""
|