test: enforce tmp working directory
This change ensures that working director when executing a test is set to `tmp_path` fixture value. Additionally, we introduce the `set_project_context` fixture that allows for test cases to switch cwd to the required fixture project (copied to `tmp_path` by default) to ensure correct source files are used. Previously, some tests accidentally picked up incorrect pyproject.toml files as a result.
Loading
Please register or sign in to comment