HomeSoftware Heritage

Replace mock_package_sql by a mock_import_swhmodule fixture

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Replace mock_package_sql by a mock_import_swhmodule fixture

in favor of using (and thus testing) the stock get_sql_for_package()
function (on the mock module returned by mock_import_swhmodule).

This comes with a change in expected test data structure for sql
script; the tests/data/<mod> is now expected to store the sql script
files in a dedicated sql/ sub directory instead of having them
directly in the <mod> directory so that the get_sql_for_package() can
be used in tests unmocked.

Details

Provenance
douarddaAuthored on Feb 16 2022, 3:31 PM
douarddaPushed on Feb 17 2022, 1:55 PM
Differential Revision
D7188: Make get_sql_for_package() return pathlib.Path objects
Build Status
Buildable 26964
Build 42162: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.