fix: test suite — seed reset, FK mappings, standalone focus tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 03:09:04 +00:00
parent d5dce02451
commit 73d44ef804
3 changed files with 1162 additions and 55 deletions

View File

@@ -24,15 +24,18 @@ from tests.introspect import FormField
# FK fields map to seed fixture keys
FK_FIELD_MAP = {
"domain_id": "domain",
"quick_domain_id": "domain",
"area_id": "area",
"project_id": "project",
"task_id": "task",
"folder_id": "weblink_folder",
"parent_id": None, # Usually optional, skip
"meeting_id": None,
"meeting_id": "meeting",
"contact_id": "contact",
"release_id": None,
"note_id": "note",
"link_id": "link",
"decision_id": "decision",
"list_id": "list",
"process_id": "process",
"run_id": "process_run",
@@ -80,6 +83,11 @@ NAME_PATTERNS: list[tuple[str, Any]] = [
("notes", "Test notes field"),
("weekly_hours", "10"),
("effective_from", None), # Resolved dynamically as date
("item_ids", ""), # Comma-separated UUIDs for reorder
("item_id", ""), # Single item ID for reorder
("direction", "up"), # Reorder direction
("label", "Test Label Auto"), # Link label
("content", "Test content"), # List item content
]