Commit 5afa60d
Fix test DB connection: use DATABASE_URL with dotenv
connect_to_db() in test_postgres_real_data.py used POSTGRES_* env vars
with wrong defaults (password='postgres', database='polismath'), causing
both test_conversation_from_postgres and test_pakistan_conversation_batch
to fail with auth errors even when Postgres is running.
Switch to DATABASE_URL (the standard in all other delphi Python code)
and load it from the repo root .env via python-dotenv.
Refs #2442
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 655bcfa commit 5afa60d
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
106 | 117 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
0 commit comments