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
anlambertPushed on Mar 22 2022, 11:55 AM
Parents
rDFUSE270f9f31b75b: pre-commit: Bump hooks and add new one to check commit message spelling
Branches
Loading...
Tags
Loading...
Build Status
Buildable 27659
Build 43294: test-and-buildJenkins console · Jenkins