Staging instance, all changes can be removed at any time

Skip to content

Make get_sql_for_package() return pathlib.Path objects

and replace mock_package_sql by a mock_import_swhmodule fixture in favor of using the stock get_sql_for_package() function (on the mock module returned by mock_import_swhmodule).

This also 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.

Depends on !318 (closed)


Migrated from D7188 (view on Phabricator)

Merge request reports

Loading