#!/bin/bash

# Runs pytest discovery to verify that it works, without actually executing any tests.
# Used as part of the pre-commit hook to verify that the tests are discoverable.

set -eo pipefail
# Run pytest in collection-only mode to verify test discovery works
uv run pytest --collect-only -q 2>&1 | tail -5
