testsAndMisc/python_pkg/archwiki_rag/tests
Krzysztof kuhy Rudnicki ff3ea99a16 Fix a test that only passed in a directory named testsAndMisc
test_passes_store_and_repo_root asserted
env["PYTHONPATH"].endswith("testsAndMisc"), which is a property of the
checkout's directory name rather than of the code. It fails in any
worktree, which is where ci-mirror runs its gates.

Assert against the value reindex.py actually computes,
Path(reindex.__file__).resolve().parents[2]. Exact equality is a
stronger check than the suffix match it replaces.

This was invisible until now because ci-mirror invoked
pytest_changed_packages.py with no arguments, and that script returns 0
on empty argv -- so the pre-push pytest stage never ran. The next commit
fixes the invocation.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJrqKERAo5QUeEHWS5Asgp
2026-08-23 14:53:29 +02:00
..
__init__.py archwiki_rag: offline semantic search over the Arch Wiki 2026-08-10 15:33:18 +02:00
test_cli.py archwiki_rag: offline semantic search over the Arch Wiki 2026-08-10 15:33:18 +02:00
test_convert.py archwiki_rag: offline semantic search over the Arch Wiki 2026-08-10 15:33:18 +02:00
test_main_entry.py archwiki_rag: offline semantic search over the Arch Wiki 2026-08-10 15:33:18 +02:00
test_reindex_entry.py archwiki_rag: offline semantic search over the Arch Wiki 2026-08-10 15:33:18 +02:00
test_reindex.py Fix a test that only passed in a directory named testsAndMisc 2026-08-23 14:53:29 +02:00
test_sync.py archwiki_rag: offline semantic search over the Arch Wiki 2026-08-10 15:33:18 +02:00