fix: pin pytest rootdir via tests/pytest.ini; move Path import to top
The root conftest.py did not prevent pytest's rootdir scandir from following the dead CREATE_PROJECT.md symlink (-> inaccessible /root/bin), so the standard 'pytest tests/...' command crashed on collection. A minimal tests/pytest.ini pins rootdir to tests/, so the repo root is never scanned. Also moves the pathlib import to the top import block (PEP 8). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
collect_ignore_glob = ["CREATE_PROJECT.md", "GITEA_API.md"]
|
|
||||||
Reference in New Issue
Block a user