Skip to content

tests: refactor the StorageTestFixture class and move sql files in the package according to D538

this allows to build the test db on the fly:

  • make it inherit from SingleDbTestFixture, so we can
  • move sql files in swh/storage/sql/
  • get rid og the setUpClass static method to reuse the one from SingleDbTestFixture,
  • apply the required modifications to tests based on this StorageTestFixture.

Warnings:

Also add README.md to the MANIFEST.in file so it does not require a too recent setuptool.

kill sql/db-init in favor of swh-core's new swh-db-init tool

sql: adapt Makefile for sql file renames and make it pifpaf compliant

ie. delete stamps when executed via pifpaf for the db setup.

Test Plan

all tests in this package should pass according swh-core!16 (closed) has been applied


Migrated from D540 (view on Phabricator)

Merge request reports

Loading