Antoine Lambert
b083b4f1f9
pytest: Fix tests execution with pytest 8.1
...
Remove use of --import-mode=importlib pytest option and use
new option consider_namespace_packages to fix tests execution
with latest pytest release.
2024-03-13 10:58:03 +01:00
David Douard
ac52cfed21
Apply swh-py-template 0.1.6
2023-12-03 17:54:52 +01:00
Antoine Lambert
e4c707d807
pytest.ini: Ensure '--import-mode importlib' option is always used
...
Fix hanging test when executed outside tox.
2023-12-01 14:43:03 +01:00
Pratyush Desai
aa8c8cb3bc
add strict asyncio_mode in pytest.ini
2022-05-09 12:13:28 +02:00
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
Valentin Lorentz
dca617f32f
Tell pytest not to recurse in dotdirs.
...
pytest wastes a lot of time in .hypothesis and .git; this commit excludes them.
2020-08-25 10:38:09 +02:00
Nicolas Dandrimont
c9963d4302
Use the new names for the swh.scheduler test fixtures
2020-07-09 17:06:50 +02:00
Nicolas Dandrimont
e0bbadfa61
Don't run pytest in the docs directory
2018-10-23 16:48:14 +02:00