#!/usr/bin/env bash set -euo pipefail # Pytest-only smoke tests for trader-mcp. # Tests use FastAPI TestClient, so the server does not need to be running. # Ensure local package import works. export PYTHONPATH="${PYTHONPATH:-}:$(pwd)" if [ -f .venv/bin/activate ]; then # shellcheck disable=SC1091 source .venv/bin/activate fi echo "Running pytest suite (trader-mcp)..." pytest -q