mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 05:11:09 -05:00
- Implement tests for RideLocation and CompanyHeadquarters models to verify functionality and data integrity. - Create a manual trigger test script for trending content calculation endpoint, including authentication and unauthorized access tests. - Develop a manufacturer sync test to ensure ride manufacturers are correctly associated with ride models. - Add tests for ParkLocation model, including coordinate setting and distance calculations between parks. - Implement a RoadTripService test suite covering geocoding, route calculation, park discovery, and error handling. - Create a unified map service test script to validate map functionality, API endpoints, and performance metrics.
43 lines
1.2 KiB
Bash
Executable File
43 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Parse options FIRST
|
|
echo "DEBUG: Arguments received: $@"
|
|
echo "DEBUG: Number of arguments: $#"
|
|
|
|
while [[ $# -gt 0 ]]; do
|
|
echo "DEBUG: Processing argument: $1"
|
|
case "$1" in
|
|
--non-interactive)
|
|
export NON_INTERACTIVE="true"
|
|
echo "DEBUG: NON_INTERACTIVE set to $NON_INTERACTIVE"
|
|
shift
|
|
;;
|
|
--debug)
|
|
export CONFIG_DEBUG="true"
|
|
echo "DEBUG: CONFIG_DEBUG set to $CONFIG_DEBUG"
|
|
shift
|
|
;;
|
|
-*)
|
|
echo "Unknown option: $1"
|
|
exit 1
|
|
;;
|
|
*)
|
|
# This is the command - stop parsing options
|
|
echo "DEBUG: Found command argument: $1, breaking"
|
|
break
|
|
;;
|
|
esac
|
|
done
|
|
|
|
# NOW set the command after options are parsed
|
|
local_command="${1:-setup}"
|
|
echo "DEBUG: Command is: $local_command"
|
|
echo "DEBUG: NON_INTERACTIVE is: ${NON_INTERACTIVE:-unset}"
|
|
echo "DEBUG: CONFIG_DEBUG is: ${CONFIG_DEBUG:-unset}"
|
|
|
|
# Test the conditional logic
|
|
if [[ "$NON_INTERACTIVE" != "true" ]]; then
|
|
echo "WOULD SHOW: Interactive banner and prompt"
|
|
else
|
|
echo "WOULD SKIP: Interactive banner and prompt (non-interactive mode)"
|
|
fi |