Db operations: bootstrap separated to its own module.

This commit is contained in:
Leo Vasanko
2026-02-10 22:09:07 +00:00
parent 12715ee405
commit f0d360758c
4 changed files with 125 additions and 119 deletions
+2 -1
View File
@@ -28,6 +28,7 @@ from paskia.db import (
Permission,
Role,
User,
bootstrap,
create_credential,
create_reset_token,
create_role,
@@ -67,7 +68,7 @@ async def test_db() -> AsyncGenerator[DB, None]:
ops_db._db = db
ops_db._store = store
# Bootstrap creates the initial permissions, org, role, and admin user
ops_db.bootstrap(
bootstrap(
org_name="Test Organization",
admin_name="Test Admin",
)