[pytest]
# Pytest configuration for Tool_OCR backend tests

# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*

# Directories to search for tests
testpaths = tests

# Output options
addopts =
    -v
    --strict-markers
    --tb=short
    --color=yes
    --maxfail=5

# Markers for categorizing tests
markers =
    unit: Unit tests for individual components
    integration: Integration tests for service interactions
    slow: Tests that take longer to run
    requires_models: Tests that require PaddleOCR models

# Coverage options (optional)
# addopts = --cov=app --cov-report=html --cov-report=term

# Logging
log_cli = false
log_cli_level = INFO
