fix(seo-data): extract real CrUX origin on 404 retry + drop dead import

This commit is contained in:
Bastien Chanot committed 2026-07-10 01:23:13 +02:00
1 parent e214da036d
commit 493ecd8806
2 files changed
+10 -2

No files matched your search

+3
View File
@@ -40,6 +40,9 @@ CRUX_DEG="$(env -u CRUX_API_KEY -u SEO_DATA_MOCK_DIR \
python3 "$SD/google_seo.py" crux --url https://ex.com)"
has "crux degrades w/o key" "$CRUX_DEG" '"status": "degraded"'
has "crux degrade reason" "$CRUX_DEG" 'no_crux_key'
ORIG="$(python3 -c "import sys; sys.path.insert(0,'$SD'); import google_seo; print(google_seo._origin('https://example.com/blog/post'))")"
has "origin strips to host" "$ORIG" 'https://example.com'
hasnt "origin drops the path" "$ORIG" 'blog'
echo ""
echo "seo-data engine: $PASS pass, $FAIL fail"