Else, running 'pytest' always crashes if 'swh.core' is installed but 'requests' isn't.
Details
Details
Diff Detail
Diff Detail
- Repository
- rDCORE Foundations and core functionalities
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 17991 Build 27788: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 27787: arc lint + arc unit
Event Timeline
Comment Actions
Build is green
Patch application report for D4756 (id=16838)
Rebasing onto 777ea186fa...
Current branch diff-target is up to date.
Changes applied before test
commit 27707fa51c65c9390042b8c88e6ec1174cc40b33 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Thu Dec 17 10:39:38 2020 +0100 Make the dependency of 'pytest_plugin' on 'requests' optional. Else, running 'pytest' always crashes if 'swh.core' is installed but 'requests' isn't.
See https://jenkins.softwareheritage.org/job/DCORE/job/tests-on-diff/187/ for more details.
Comment Actions
I'd prefer if we made this pytest plugin opt-in; AFAICT that means adding it in the swh.storage, swh.scheduler and swh.indexer conftest.py.
In the meantime, I think you should make swh.clearlydefined depend on swh.core[http] (which is a dependency it'll need at some point anyway, to interact with rpc services?)
Comment Actions
Ah, I missed requests_mock_datadir... That means swh-lister, swh-deposit and swh-loader-core need it too... hmpf.