swh-lister/pytest.ini
Antoine Lambert ff0035a60b 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.
2022-03-22 11:56:35 +01:00

5 lines
173 B
INI

[pytest]
# We need this to avoid conflicts between the autoloaded fixture, and the
# manually loaded one.
addopts = -p no:pytest_swh_scheduler
norecursedirs = build docs .*