feat: beta API integration test suite — 85 new tests across 6 modules
Extends integration test coverage from 108 to 193 tests for the beta gate. New test modules: - test_query_api_extended.py (33 tests): documents, evidence, macro/competitive, ops/admin, agents, analytics - test_registry_write_paths.py (16 tests): write paths, validation, duplicates, competitor/exposure CRUD - test_risk_approval_lifecycle.py (8 tests): evaluation edge cases, full approval lifecycle - test_trading_extended.py (12 tests): config round-trips, decision filtering, override validation - test_cross_service_roundtrip.py (4 tests): cross-service data consistency - test_error_handling.py (12 tests): 404s, 422s, empty states, health checks Seed script extended with watchlists, approvals, lockouts, notifications, ingestion runs, saved queries, and daily risk snapshots.
This commit is contained in:
@@ -21,18 +21,25 @@ import pytest_asyncio
|
||||
from tests.integration.profiler import EndpointProfiler
|
||||
from tests.integration.seed_sandbox import (
|
||||
SEED_AGENT_IDS,
|
||||
SEED_APPROVAL_IDS,
|
||||
SEED_BROKER_ACCOUNT_ID,
|
||||
SEED_COMPANY_IDS,
|
||||
SEED_DOCUMENT_IDS,
|
||||
SEED_GLOBAL_EVENT_IDS,
|
||||
SEED_INGESTION_RUN_IDS,
|
||||
SEED_LOCKOUT_IDS,
|
||||
SEED_NOTIFICATION_IDS,
|
||||
SEED_ORDER_IDS,
|
||||
SEED_PORTFOLIO_SNAPSHOT_ID,
|
||||
SEED_POSITION_IDS,
|
||||
SEED_RECOMMENDATION_IDS,
|
||||
SEED_RISK_CONFIG_ID,
|
||||
SEED_RISK_SNAPSHOT_IDS,
|
||||
SEED_SAVED_QUERY_IDS,
|
||||
SEED_TRADING_DECISION_ID,
|
||||
SEED_TREND_IDS,
|
||||
SEED_VARIANT_IDS,
|
||||
SEED_WATCHLIST_IDS,
|
||||
)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -185,4 +192,11 @@ def seed_ids() -> dict:
|
||||
"trading_decision_id": SEED_TRADING_DECISION_ID,
|
||||
"portfolio_snapshot_id": SEED_PORTFOLIO_SNAPSHOT_ID,
|
||||
"risk_config_id": SEED_RISK_CONFIG_ID,
|
||||
"watchlists": SEED_WATCHLIST_IDS,
|
||||
"approvals": SEED_APPROVAL_IDS,
|
||||
"lockouts": SEED_LOCKOUT_IDS,
|
||||
"notifications": SEED_NOTIFICATION_IDS,
|
||||
"ingestion_runs": SEED_INGESTION_RUN_IDS,
|
||||
"saved_queries": SEED_SAVED_QUERY_IDS,
|
||||
"risk_snapshots": SEED_RISK_SNAPSHOT_IDS,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user