Repository navigation
Commit ce0bc3b
committed
fix: force the psycopg2 driver in the acceptance tests database URL, which defaults to psycopg now
SQLAlchemy 2.1.0 makes psycopg 3 the default driver for postgresql://
URLs. This package installs psycopg2-binary only, and since that release
every acceptance test needing the database errors out at setup with
"ModuleNotFoundError: No module named 'psycopg'" wherever SQLAlchemy is
not pinned, as in the published wheel.
The engine URL now names the psycopg2 driver explicitly, which keeps the
tests on the installed driver with any SQLAlchemy 2.x release.
on-behalf-of: @camptocamp <info@camptocamp.com>1 parent 250c038 commit ce0bc3b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments