fix: test suite green (156 passed, 7 skipped)
- Fix seed data to match actual DB schemas (capture.processed, daily_focus.completed, weblinks junction table) - Add date/datetime coercion in BaseRepository for asyncpg compatibility - Add UUID validation in BaseRepository.get() to prevent DataError on invalid UUIDs - Fix focus.py and time_tracking.py date string handling for asyncpg - Fix test ordering (action before delete) and skip destructive admin actions - Fix form_factory FK resolution for flat UUID strings - Fix route_report.py to use get_route_registry(app) - Add asyncio_default_test_loop_scope=session to pytest.ini Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,15 +12,15 @@ from __future__ import annotations
|
||||
import sys
|
||||
sys.path.insert(0, "/app")
|
||||
|
||||
from tests.registry import ALL_ROUTES, ROUTE_REGISTRY, PREFIX_TO_SEED # noqa: E402
|
||||
from tests.introspect import dump_registry_report, RouteKind # noqa: E402
|
||||
from tests.registry import ALL_ROUTES, PREFIX_TO_SEED # noqa: E402
|
||||
from tests.introspect import dump_registry_report, get_route_registry, RouteKind # noqa: E402
|
||||
from main import app # noqa: E402
|
||||
|
||||
|
||||
def main():
|
||||
print(dump_registry_report(app))
|
||||
|
||||
reg = ROUTE_REGISTRY
|
||||
reg = get_route_registry(app)
|
||||
print("\n" + "=" * 70)
|
||||
print("SUMMARY")
|
||||
print("=" * 70)
|
||||
|
||||
Reference in New Issue
Block a user