- test_agent_handler: additional edge cases for streaming, HITL, file upload - test_confirmations: HITL confirm/deny lifecycle coverage - test_conversation_api: conversation save/load persistence tests - test_langchain_tools: tool registration, dual-auth header propagation - ConversationList.test.ts (frontend): conversation list component tests - conftest: shared fixtures for agent tests - task_manager/manager: minor fixes from test coverage - tasks.md/test-documentation.md: spec and test documentation updates - speckit.test.md: speckit workflow documentation update
20 lines
844 B
Python
20 lines
844 B
Python
# conftest.py at backend root
|
|
# Prevents pytest collection errors caused by duplicate test module names
|
|
# between the root tests/ directory and co-located src/<module>/__tests__/ directories.
|
|
# Without this, pytest sees e.g. tests/test_auth.py and src/core/auth/__tests__/test_auth.py
|
|
# and raises "import file mismatch" because both map to module name "test_auth".
|
|
|
|
import os
|
|
from cryptography.fernet import Fernet
|
|
|
|
# Set ENCRYPTION_KEY for EncryptionManager before any module imports
|
|
# Required by LLMProviderService which is imported via route modules
|
|
os.environ.setdefault("ENCRYPTION_KEY", Fernet.generate_key().decode())
|
|
|
|
# Files in tests/ that clash with __tests__/ co-located tests
|
|
collect_ignore = [
|
|
os.path.join("tests", "test_auth.py"),
|
|
os.path.join("tests", "test_logger.py"),
|
|
os.path.join("tests", "test_models.py"),
|
|
]
|