mockapi/scripts/run_example.sh
2026-03-16 10:49:01 +00:00

22 lines
No EOL
463 B
Bash
Executable file

#!/bin/bash
# Simple script to run the example integration test
echo "Running integration test for Configurable Mock API..."
echo ""
# Activate virtual environment if exists
if [ -d "venv" ]; then
echo "Activating virtual environment..."
source venv/bin/activate
fi
# Run the example script
python example_usage.py
# Deactivate virtual environment if activated
if [ -d "venv" ] && [ "$VIRTUAL_ENV" != "" ]; then
deactivate
fi
echo ""
echo "Done."