Skip to content
Snippets Groups Projects
Commit f6ad1ed1 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

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.
parent bc3831fd
No related branches found
Tags v0.0.16
No related merge requests found
[pytest]
addopts = --doctest-modules -p no:pytest_swh_core
norecursedirs = docs .*
norecursedirs = build docs .*
markers =
fs: tests that involve filesystem ios
requires_optional_deps: tests in test_cli.py that should not run if optional dependencies are not installed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment