#!/bin/bash # Run pytest tests with proper Python path cd "$(dirname "$0")" # Default to Hermes python (has pytest), fall back to system python if [ -f "/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python" ]; then PYTHON="/opt/hermes/tools/python-3.14.9+202****1021-linux-x64/bin/python" elif command -v python3 &>/dev/null && python3 -c "import pytest" 2>/dev/null; then PYTHON="python3" else echo "Error: pytest not found. Try:" echo " pip install pytest numpy psutil Pillow" exit 1 fi echo "Running tests with: $PYTHON" # Run all tests except GUI-dependent ones (requires PySide6) $PYTHON -m pytest tests/unit/ \ --ignore=tests/unit/test_updater.py \ --ignore=tests/unit/test_plugin_manager.py \ --ignore=tests/unit/test_flares.py \ "$@"