pytest: Fix tests execution with pytest 8.1
Remove use of --import-mode=importlib
pytest option and move conftest.py
file from swh/scheduler/tests
to swh/scheduler
to fix tests execution
with latest pytest release.
Edited by Antoine Lambert