#!/bin/bash # Run pytest tests with proper Python path cd "$(dirname "$0")" # Use full python path if in Hermes environment 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" else PYTHON="python3" 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 \ "$@"