Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

test(python): isolate relative checker discovery from repository builds

Rudy Celekli2bc74a27efda
diff --git a/python/tests/test_horn_checker_relative.py b/python/tests/test_horn_checker_relative.py
index 4c3c9d1a..cc7371e0 100644
--- a/python/tests/test_horn_checker_relative.py
+++ b/python/tests/test_horn_checker_relative.py
@@ -1,11 +1,15 @@
"""The executable we locate must be the executable we launch."""
import sys
import pytest
+from open_ontologies_lite.horn import certify
from open_ontologies_lite.horn.certify import check_horn, find_checker
@pytest.mark.parametrize("source", ["explicit", "environment", "path", "absolute"])
def test_located_checker_executes_from_selected_location(tmp_path, monkeypatch, source):
monkeypatch.chdir(tmp_path)
+ # PATH is lower priority than a built repository checker. Isolate discovery
+ # so this transport fixture does not accidentally invoke the real Lean binary.
+ monkeypatch.setattr(certify, "_repo_candidate", lambda name: None)
binary = tmp_path / "oo-horn"
try:
binary.symlink_to(sys.executable)