This commit is contained in:
beabigegg
2025-11-12 22:53:17 +08:00
commit da700721fa
130 changed files with 23393 additions and 0 deletions

32
backend/pytest.ini Normal file
View File

@@ -0,0 +1,32 @@
[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