The project includes several test layers. You can run them locally using pytest.
Core Tests
Validates integrity and server construction without requiring network or credentials.
pytest tests/test_integrity.py tests/test_server_construction.py -v
Integration Tests
Executes real calls against the Alpaca paper trading API. Requires ALPACA_API_KEY and ALPACA_SECRET_KEY.
ALPACA_API_KEY=... ALPACA_SECRET_KEY=... pytest tests/ -m integration -v
ReadMe Docs Integration Tests
Executes live documentation lookup calls. Requires ALPACA_RUN_README_INTEGRATION=true.
ALPACA_RUN_README_INTEGRATION=true pytest tests/test_readme_integration.py -v
# Core tests (no credentials needed)
pytest tests/test_integrity.py tests/test_server_construction.py -v
# Integration tests (requires paper API keys)
ALPACA_API_KEY=... ALPACA_SECRET_KEY=... pytest tests/ -m integration -v
# ReadMe docs integration tests (requires network, no Alpaca credentials)
ALPACA_RUN_README_INTEGRATION=true pytest tests/test_readme_integration.py -v