docs(pilot): fix database url reference in workshop roster verification script
Replace undefined `db_filename` with `abs_db_path` in `settings.database_url` assignment, ensuring the standalone verification runner cleanly anchors to the isolated test database path.
This commit is contained in:
1 parent
070dfd21d5
commit
a7f7799362
1 file changed
+1
-1
@@ -46,7 +46,7 @@ if abs_db_path.exists():
|
||||
os.environ['DATABASE_URL'] = f'file:{abs_db_path}'
|
||||
|
||||
from app.core.config import settings
|
||||
settings.database_url = f'file:{db_filename}'
|
||||
settings.database_url = f'file:{abs_db_path}'
|
||||
from app.db.init_db import init_schema_and_seed
|
||||
from app.db.database import get_db
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
Reference in new issue
Block a user