HomeSoftware Heritage

tests: refactor the StorageTestFixture class and move sql files in the package
c4cdb6403705Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

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

so we can build the db setup sql file 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:

  • this requires D538,
  • this will break tests in swh-vault.

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

Details

Provenance
douarddaAuthored on Oct 12 2018, 1:27 PM
vlorentzPushed on May 17 2019, 1:53 PM
Differential Revision
D540: tests: refactor the StorageTestFixture class and move sql files in the package according to D538
Parents
rDSTOC8f9af9b57ad9: Remove some leftover compatibility code
Branches
Unknown
Tags
Unknown