22 lines
599 B
Python
22 lines
599 B
Python
from __future__ import annotations
|
|
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
BACKEND_ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_detached_knowledge_base_is_consistent() -> None:
|
|
completed = subprocess.run(
|
|
[sys.executable, "knowledge/tools/validate_knowledge.py"],
|
|
cwd=BACKEND_ROOT,
|
|
check=False,
|
|
capture_output=True,
|
|
text=True,
|
|
)
|
|
assert completed.returncode == 0, completed.stdout + completed.stderr
|
|
assert "integration_state=not_connected" in completed.stdout
|
|
assert "stable_kernel_imports=0" in completed.stdout
|