core.db.cli: Add coverage and ensure `swh db *` works as expected
This explicitely checks the different scenario possible with the current subcommands (create, init-admin, init). Using a subset of sql schema representation we have in our existing datasets. Closes T2741
parent
12fa6f26
No related branches found
No related tags found
Showing
- swh/core/db/tests/data/cli/0-superuser-init.sql 1 addition, 0 deletionsswh/core/db/tests/data/cli/0-superuser-init.sql
- swh/core/db/tests/data/cli/1-schema.sql 13 additions, 0 deletionsswh/core/db/tests/data/cli/1-schema.sql
- swh/core/db/tests/data/cli/3-func.sql 6 additions, 0 deletionsswh/core/db/tests/data/cli/3-func.sql
- swh/core/db/tests/data/cli/4-data.sql 5 additions, 0 deletionsswh/core/db/tests/data/cli/4-data.sql
- swh/core/db/tests/test_cli.py 205 additions, 7 deletionsswh/core/db/tests/test_cli.py
swh/core/db/tests/data/cli/1-schema.sql
0 → 100644
swh/core/db/tests/data/cli/3-func.sql
0 → 100644
swh/core/db/tests/data/cli/4-data.sql
0 → 100644
-
Some references in the commit message have been migrated:
- T2741 is now #2741 (closed)
-
mentioned in merge request !187 (closed)
-
mentioned in merge request !188 (closed)
Please register or sign in to comment