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:
Mortdecai
2026-06-07 13:27:54 -04:00
parent 7bfe862f53
commit 2308f24bc4
-1
View File
@@ -1 +0,0 @@
collect_ignore_glob = ["CREATE_PROJECT.md", "GITEA_API.md"]