Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/test_cli_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,13 @@ def fake_run(cmd, **kwargs):
assert db_builder_calls, "db.builder was never invoked"
env = db_builder_calls[0]["env"]
assert "PYTHONPATH" in env
assert "archaeology" in env["PYTHONPATH"] or "DEV-ARCH" in env["PYTHONPATH"]
# PYTHONPATH is set to the package root (Path(__file__).parent.parent)
# which varies by checkout name — verify it's an absolute path containing
# the archaeology package directory, not a hardcoded repo name.
pp = env["PYTHONPATH"]
assert os.path.isabs(pp.split(os.pathsep)[0]), (
f"PYTHONPATH should start with an absolute path, got: {pp}"
)


# ── analyze (unknown vector) ──────────────────────────────────────────────────
Expand Down
Loading