Files
trygo-py-cliclient/scripts/simple_create_user.sh
Deepak Mallubhotla 2dbd4a80a1
All checks were successful
Nix Tests / nix-test (nix-runner) (push) Successful in 7m39s
Python Tests / python-test (push) Successful in 8m12s
adding upload testing, etc.
2025-10-31 17:58:01 -05:00

29 lines
878 B
Bash
Executable File

#!/usr/bin/env bash
set -Eeuo pipefail
banner() {
echo "========================================================"
echo " $*"
echo "========================================================"
}
# utility script for easy testing
banner "Checking if test user exists"
if uv run taiga login --email "test@example.com" --password "test" 2>/dev/null; then
echo "Test user already exists, skipping registration"
else
banner "Creating test user"
uv run taiga register --display-name "Display Test" --email "test@example.com" --password "test"
banner "Logging in test user"
uv run taiga login --email "test@example.com" --password "test"
fi
banner "Uploading test files"
uv run taiga activities upload local/test-data/test.fit
uv run taiga activities upload local/test-data/test2.fit
uv run taiga activities upload local/test-data/test3.fit
banner "Setup complete!"