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:
@@ -10,7 +10,6 @@ import httpx
|
||||
|
||||
from ..core import config, execute
|
||||
|
||||
|
||||
_TIMEOUT_SECONDS = 30
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@ import httpx
|
||||
|
||||
from ..core import config, execute
|
||||
|
||||
|
||||
_TIMEOUT_SECONDS = 15
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user