HomeSoftware Heritage

tests: Fix execution when building debian packages

Description

tests: Fix execution when building debian packages

Recent changes in swh-web tests broke the debian package builds.

When building debian packages, the pytest command is not available in build
environment and must be executed through "python3 -m pytest" instead.

Debian buster packages a quite old version of pytest (3.10.1) and some
pytest hooks parameters and CLI options are missing compared to upstream
version so workaround these issues.

Also silent non critical warnings related to the use of hypothesis and
pytest function scoped fixtures as they add a lot of noise in pytest
reports.

Details

Provenance
anlambertAuthored on Oct 19 2021, 5:49 PM
anlambertPushed on Oct 20 2021, 11:29 AM
Differential Revision
D6511: tests: Fix execution when building debian packages
Parents
rDWAPPS96b3d287ed50: assets/origin-save: Display rejection reason in request info popover
Branches
Unknown
Tags
Unknown
Build Status
Buildable 24563
Build 38327: test-and-buildJenkins console · Jenkins