HomeSoftware Heritage

sql: move sql files in the python package and refactor tests to use these

Description

sql: move sql files in the python package and refactor tests to use these

This requires a few steps:

  • refactor the BaseTestStorage to use SingleDbTestFixture
  • rename any swh-xxx.sql files into NN-swh-xxx.sql so we can sort them without ambiguity
  • move them into the python package, so the tests knows where to look for them.

Related to T1265.

Details

Provenance
douarddaAuthored on Oct 15 2018, 2:01 PM
douarddaPushed on Oct 17 2018, 4:18 PM
Differential Revision
D543: sql: move sql files in the python package and refactor tests to use these according to D538
Parents
rDCIDXb5efc94035e4: Add OriginIndexer + OriginHeadIndexer.
Branches
Unknown
Tags
Unknown