import os import pathlib import pytest @pytest.fixture(autouse=True) def working_dir(): os.chdir(pathlib.Path(__file__).parent.joinpath("tests"))