tests.sh 389 B

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