Skip to content

Delay import to allow proper debian packaging of the client code

The swh.graph.client and swh.graph.naive_client must be packaged separately to allow the vault to use the optional graph dependency. We need the tests to run in the packaging though. But the current conftest.py mixes both server and client code. Delaying imports this way should allow the packaging to run accordingly [1].

  • [1]
pytest -k "not remote" swh/

Related to swh/infra/sysadm-environment#3518 (closed)

Test Plan

tox


Migrated from D6167 (view on Phabricator)

Merge request reports