HomeSoftware Heritage

api/origin_save: Do not fetch savable visit types when running tests

Description

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.

Details

Provenance
anlambertAuthored on Oct 14 2021, 4:55 PM
anlambertPushed on Oct 14 2021, 5:01 PM
Parents
rDWAPPS5cab8a54553e: tests/browse/test_directory: Fix a couple of flaky tests
Branches
Unknown
Tags
Unknown
Build Status
Buildable 24441
Build 38141: test-and-buildJenkins console · Jenkins