Skip to content

Use PostgreSQL backend for django database in tests

Django database for swh-web has been recently migrated from sqlite3 backend to PostgreSQL one (swh/infra/sysadm-environment#2945 (closed)) in production.

Nevertheless, swh-web tests still use the sqlite3 backend.

We should also use the PostgreSQL backend in tests to align with production and catch possible issues prior deployment.

The pytest-django fixtures db and more advanced ones should help setting the PostgreSQL database for tests.


Migrated from T3601 (view on Phabricator)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information