#!/bin/bash echo "Running pre-push backend tests..." cd backend || exit 1 python -m pytest tests/ if [ $? -ne 0 ]; then echo "Tests failed! Fix them before pushing." exit 1 fi echo "Tests passed!" exit 0