mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-12 22:55:45 +08:00
34 lines
693 B
INI
34 lines
693 B
INI
|
|
[pytest]
|
||
|
|
# Pytest configuration for sandbox tests
|
||
|
|
|
||
|
|
# Test discovery patterns
|
||
|
|
python_files = test_*.py
|
||
|
|
python_classes = Test*
|
||
|
|
python_functions = test_*
|
||
|
|
|
||
|
|
# Markers for different test types
|
||
|
|
markers =
|
||
|
|
integration: Tests that require external services (Aliyun API, etc.)
|
||
|
|
unit: Fast tests that don't require external services
|
||
|
|
slow: Tests that take a long time to run
|
||
|
|
|
||
|
|
# Test paths
|
||
|
|
testpaths = .
|
||
|
|
|
||
|
|
# Minimum version
|
||
|
|
minversion = 7.0
|
||
|
|
|
||
|
|
# Output options
|
||
|
|
addopts =
|
||
|
|
-v
|
||
|
|
--strict-markers
|
||
|
|
--tb=short
|
||
|
|
--disable-warnings
|
||
|
|
|
||
|
|
# Log options
|
||
|
|
log_cli = false
|
||
|
|
log_cli_level = INFO
|
||
|
|
|
||
|
|
# Coverage options (if using pytest-cov)
|
||
|
|
# addopts = --cov=agent.sandbox --cov-report=html --cov-report=term
|