chore: add test user seed script and fix seed flow validation

Add seed_test_users.py for creating 4 dev accounts (super admin, pro
solo, team admin, team engineer) via direct SQL. Fix seed scripts to
create flows as drafts to bypass publish validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-02-16 22:48:51 -05:00
parent 697669ffe4
commit 01a062169e
4 changed files with 191 additions and 0 deletions

View File

@@ -883,6 +883,7 @@ async def create_procedural_flow(client: httpx.AsyncClient, token: str, flow_dat
# Mark as default/system flow (public and visible to all)
flow_data["is_default"] = True
flow_data["is_public"] = True
flow_data["status"] = "draft" # Skip validation for seed data
# Check if flow with same name exists
list_response = await client.get(f"{API_BASE_URL}/trees", headers=headers, params={"tree_type": "procedural"})