]> Nutra Git (v1) - gamesguru/getmyancestors-tests-data.git/commitdiff
update script, add gitignore
authorShane Jaroch <chown_tee@proton.me>
Thu, 22 Jan 2026 06:38:00 +0000 (01:38 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 22 Jan 2026 06:38:00 +0000 (01:38 -0500)
.gitignore [new file with mode: 0644]
regenerate_fixtures.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..e7be0be
--- /dev/null
@@ -0,0 +1,2 @@
+.coverage*
+
diff --git a/regenerate_fixtures.sh b/regenerate_fixtures.sh
new file mode 100755 (executable)
index 0000000..729bb4b
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/bash
+set -e
+
+# Ensure credentials are present
+if [ -z "$FAMILYSEARCH_USER" ]; then
+       echo "Error: FAMILYSEARCH_USER not set"
+       exit 1
+fi
+
+testdata_dir="$(dirname "$0")"
+mkdir -p "$testdata_dir/.tmp"
+
+echo "========================================"
+echo "Regenerating Fixtures for Part 1 (Ada)"
+echo "========================================"
+export GMA_CACHE_DIR="$testdata_dir/fixtures/part1"
+# Clear existing to ensure clean state
+rm -rf "$GMA_CACHE_DIR"
+mkdir -p "$GMA_CACHE_DIR"
+
+python3 -m coverage run -p -m getmyancestors --verbose \
+       -u "$FAMILYSEARCH_USER" \
+       -i "29HC-P5H" \
+       -a 3 -d 2 \
+       --rate-limit 1 --cache --no-cache-control \
+       --creation-date "2026-01-01T12:00:00" \
+       -o "$testdata_dir/.tmp/regenerate_part1.ged"
+
+echo ""
+echo "========================================"
+echo "Regenerating Fixtures for Part 2 (Marie Curie)"
+echo "========================================"
+export GMA_CACHE_DIR="$testdata_dir/fixtures/part2"
+# Clear existing
+rm -rf "$GMA_CACHE_DIR"
+mkdir -p "$GMA_CACHE_DIR"
+
+python3 -m coverage run -p -m getmyancestors --verbose \
+       -u "$FAMILYSEARCH_USER" \
+       -i "LC5H-V1Z" \
+       -a 3 -d 2 \
+       --rate-limit 1 --cache --no-cache-control \
+       --creation-date "2026-01-01T12:00:00" \
+       -o "$testdata_dir/.tmp/regenerate_part2.ged"
+
+echo ""
+echo "✅ Regeneration Complete!"
+echo "Part 1 Cache: $testdata_dir/fixtures/part1"
+echo "Part 2 Cache: $testdata_dir/fixtures/part2"