-
- Downloads
tests: make db-related tests use sql files from the package
this require a small change in vault's swh-schema.sql: create the dbversion tqble only if needed, otherwise this sql cannot be executed without error on the top of storages' db schema. I guess it used to work thanks to the fact theses used to be pg_restored instead of SQL statements executed via psql (with '-v ON_ERROR_STOP=1', which se do want). Related to T1265.
Showing
- swh/vault/sql/30-swh-schema.sql 1 addition, 1 deletionswh/vault/sql/30-swh-schema.sql
- swh/vault/tests/__init__.py 5 additions, 0 deletionsswh/vault/tests/__init__.py
- swh/vault/tests/test_backend.py 1 addition, 2 deletionsswh/vault/tests/test_backend.py
- swh/vault/tests/test_cache.py 1 addition, 2 deletionsswh/vault/tests/test_cache.py
- swh/vault/tests/test_cookers.py 1 addition, 2 deletionsswh/vault/tests/test_cookers.py
- swh/vault/tests/vault_testing.py 11 additions, 18 deletionsswh/vault/tests/vault_testing.py
Loading
Please register or sign in to comment