Spaces:
Runtime error
Runtime error
File size: 1,445 Bytes
330b6e4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | [tool:pytest]
# Pytest configuration for multi-language chat agent
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output options
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
--color=yes
--durations=10
# Markers for test categorization
markers =
unit: Unit tests for individual components
integration: Integration tests for component interactions
e2e: End-to-end tests for complete workflows
performance: Performance and load tests
slow: Tests that take longer to run
api: API endpoint tests
websocket: WebSocket communication tests
database: Database-related tests
cache: Redis cache tests
language_switching: Language context switching tests
chat_history: Chat history persistence tests
concurrent: Concurrent operation tests
# Minimum version requirements
minversion = 6.0
# Test timeout (in seconds)
timeout = 300
# Coverage options (if pytest-cov is installed)
# addopts = --cov=chat_agent --cov-report=html --cov-report=term-missing
# Logging configuration
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Filter warnings
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning |