Page MenuHomeSoftware Heritage

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

Authored by douardda on Oct 16 2018, 11:24 PM.

Details

Summary

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.

Test Plan

all tests should pass if D538 is applied to swh-core

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.