Spaces:
Running
Running
File size: 208 Bytes
afd56bc | 1 2 3 4 5 6 7 8 9 10 11 | #!/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
|