-
- Downloads
test/db: simplify a bit the handling of test db backends
Rename 'swh/core/test/data/cli' as 'swh/core/test/data/postgresql' so this directory use the same name as the default db backend in cli tools (postgresql). This allow to remove a bit of complexity in mockups for import_swhmodule and get_swh_backend_module. Also make mock_get_swh_backend_module() depend on mock_import_swhmodule() since the former need the later to work properly in most cases.
Showing
- swh/core/db/tests/conftest.py 15 additions, 29 deletionsswh/core/db/tests/conftest.py
- swh/core/db/tests/data/README 25 additions, 0 deletionsswh/core/db/tests/data/README
- swh/core/db/tests/data/postgresql/sql/0-superuser-init.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/0-superuser-init.sql
- swh/core/db/tests/data/postgresql/sql/15-flavor.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/15-flavor.sql
- swh/core/db/tests/data/postgresql/sql/30-schema.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/30-schema.sql
- swh/core/db/tests/data/postgresql/sql/40-funcs.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/40-funcs.sql
- swh/core/db/tests/data/postgresql/sql/50-data.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/50-data.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/001.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/001.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/002.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/002.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/003.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/003.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/004.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/004.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/005-bis.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/005-bis.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/005.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/005.sql
- swh/core/db/tests/data/postgresql/sql/upgrades/006.sql 0 additions, 0 deletionsswh/core/db/tests/data/postgresql/sql/upgrades/006.sql
- swh/core/db/tests/test_cli.py 12 additions, 24 deletionsswh/core/db/tests/test_cli.py
- swh/core/db/tests/test_db_utils.py 6 additions, 12 deletionsswh/core/db/tests/test_db_utils.py
Loading
Please register or sign in to comment