Files
aitbc/pytest.ini
oib f086eba111 fix(pytest): remove pytest section header and configure cache directory to dev/cache/
- Remove [pytest] section header from pytest.ini configuration file
- Add cache_dir setting to store pytest cache in dev/cache/.pytest_cache instead of project root
- Prevent .pytest_cache directory creation at root level
2026-03-02 21:56:15 +01:00

48 lines
1.1 KiB
INI

# pytest configuration for AITBC
# Test discovery
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Cache directory - prevent root level cache
cache_dir = dev/cache/.pytest_cache
# Custom markers
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (may require external services)
slow: Slow running tests
# Test paths to run - restored to full coverage
testpaths = tests
# Additional options for local testing
addopts =
--verbose
--tb=short
# Python path for imports
pythonpath =
.
packages/py/aitbc-crypto/src
packages/py/aitbc-sdk/src
apps/coordinator-api/src
apps/wallet-daemon/src
apps/blockchain-node/src
apps/trade-exchange/src
# Environment variables for tests
env =
AUDIT_LOG_DIR=/tmp/aitbc-audit
DATABASE_URL=sqlite:///./test_coordinator.db
# Warnings
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::pytest.PytestUnknownMarkWarning
ignore::pydantic.PydanticDeprecatedSince20
ignore::sqlalchemy.exc.SADeprecationWarning