test: add 41 tests for SEO/GEO hub — sync, queries, admin routes

Covers all query functions (search perf, funnel, scorecard),
sync functions (umami with mocked httpx, bing/gsc skip tests),
admin route rendering, CSRF-protected sync POST, and boundary
validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-23 15:08:13 +01:00
parent ccf03db9a3
commit 4bdccb65e9
5 changed files with 749 additions and 4 deletions

View File

@@ -10,7 +10,6 @@ import httpx
from ..core import config, execute
_TIMEOUT_SECONDS = 30

View File

@@ -5,14 +5,12 @@ is synchronous, so sync runs in asyncio.to_thread().
"""
import asyncio
import time
from datetime import datetime, timedelta
from pathlib import Path
from urllib.parse import urlparse
from ..core import config, execute
# GSC returns max 25K rows per request
_ROWS_PER_PAGE = 25_000

View File

@@ -10,7 +10,6 @@ import httpx
from ..core import config, execute
_TIMEOUT_SECONDS = 15