HomeSoftware Heritage

pytest: Exclude build directory for tests discovery

Description

pytest: Exclude build directory for tests discovery

Due to test modules being copied in subdirectories of the
build directory by setuptools, it makes pytest fail by raising
ImportPathMismatchError exceptions when invoked from root
directory of the module.

So ignore the build folder to discover tests.

Details

Provenance
anlambertAuthored on Mar 22 2022, 11:55 AM
vlorentzCommitted on Mar 25 2022, 3:45 PM
vlorentzPushed on Mar 25 2022, 3:46 PM
Parents
rDGRPH108646b731c4: naive_client: Add documentation and doctest to initialize it.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27827
Build 43563: test-and-buildJenkins console · Jenkins