#!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$ROOT_DIR" echo "Running tests (pytest)..." if command -v pytest >/dev/null 2>&1; then exec pytest -q elif command -v python >/dev/null 2>&1; then exec python -m pytest -q else echo "pytest/python not found in PATH. Install dependencies and retry." >&2 exit 1 fi