api/origin_save: Do not fetch savable visit types when running tests
As this is done through a decorator to replace a variable in a docstring,
it has the side effect to call swh-scheduler API when importing the module.
This is not required when running tests so do not fetch that list of
visit types in that case.