Install postgresql_fact fixture for faster postgres tests
This moves the SWHDatabaseJanitor from swh.storage to swh.core. This also adds tests to it. This will allow to share the behavior on other swh services with postgres backends (vault, scheduler, etc...).
parent
7f928a07
No related branches found
Tags v0.9.0
Showing
- mypy.ini 3 additions, 0 deletionsmypy.ini
- requirements-db.txt 1 addition, 0 deletionsrequirements-db.txt
- requirements-test-db.txt 1 addition, 1 deletionrequirements-test-db.txt
- swh/core/db/db_utils.py 116 additions, 2 deletionsswh/core/db/db_utils.py
- swh/core/db/pytest_plugin.py 62 additions, 0 deletionsswh/core/db/pytest_plugin.py
- swh/core/db/tests/data/0-schema.sql 19 additions, 0 deletionsswh/core/db/tests/data/0-schema.sql
- swh/core/db/tests/data/1-data.sql 15 additions, 0 deletionsswh/core/db/tests/data/1-data.sql
- swh/core/db/tests/test_db_utils.py 142 additions, 0 deletionsswh/core/db/tests/test_db_utils.py
Loading