Skip to content
Snippets Groups Projects
Commit c8000279 authored by David Douard's avatar David Douard
Browse files

tests: mock get_entry_points and import_module

Replace mockups of (swh.core) import_swhmodule and get_swh_backend_module
by mockups of lower level functions get_entry_points (actually
backports.entry_points_selectable.entry_points) and importlib.import_module.
This allows to actually test these (previously mocked) functions,
and to clarify a bit the way this loading mechanism works in tests.

Loaded "backends" are now actual python packages located in
<datadir>/test/<cls>.
parent eb386867
No related branches found
No related tags found
1 merge request!396db: Fix `swh db create` and `init-admin` commands for 'package:cls' syntax
Showing
with 45 additions and 77 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment