HomeSoftware Heritage

conftest: use pytest-postgresql for django related tests

Authored by douardda on Dec 17 2019, 3:21 PM.

Description

conftest: use pytest-postgresql for django related tests

Replace the (non-working) django init hook by overloaded django_db_setup
and make this django_db_setup use pytest-postgresql so we do not depend on
external test environment (running postgresql server, tox or hand managed
pifpaf).

Details

Committed
douarddaDec 20 2019, 12:09 PM
Pushed
douarddaJan 7 2020, 10:24 AM
Differential Revision
D2474: conftest: use pytest-postgresql for django related tests
Parents
rDDEP3edb9134613d: Always generate a zip file from uploaded archives
Branches
Unknown
Tags
Unknown
Build Status
Buildable 9982
Build 14753: test-and-buildJenkins