Files
aitbc/pytest.ini
oib 2d97783fb1 refactor(coordinator-api,blockchain-explorer): add response caching and fix timestamp handling
- Add cached decorator to admin stats, job status, payment status, and marketplace stats endpoints
- Configure cache TTLs using get_cache_config for different endpoint types (1min job_list, 30s user_balance, marketplace_stats)
- Import cache_management router and include it in main app with /v1 prefix
- Fix blockchain-explorer formatTimestamp to handle both ISO string and Unix numeric timestamps with type
2026-02-28 21:50:25 +01:00

46 lines
1.0 KiB
INI

[pytest]
# pytest configuration for AITBC
# Test discovery
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# 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