Skip to content
Snippets Groups Projects
Commit 220a8b37 authored by David Douard's avatar David Douard
Browse files

tests: refactor SingleDbTestFixture class to add generic db initialization

based on sql files shipped within the python package. This require several
small refactorings of SingleDbTestFixture.setUpClass and .add_db() methods:

- replace the 2 arguments (dump, dump_type) by a single 'dumps' one; this later
  must be an iterable of couples (dump_file, dump_type)
- refactor all needed helper functions accordingly.

We also add a small helper function to sort numerical file names, and provide a
DB_DUMP_TYPES as a global variable to prepare the next commit in which a new
cli tool 'swh-db-init' is added.

Related to T1265.
parent 417ae254
No related branches found
No related tags found
1 merge request!16refactor SingleDbTestFixture class to add generic db initialization
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment