fix(evidence): support nested workspace roots

This commit is contained in:
2026-08-25 20:54:23 +02:00
parent 6afb5d242b
commit 4606ec19a9
2 changed files with 23 additions and 4 deletions
+11
View File
@@ -1,10 +1,21 @@
import json
import subprocess
from typer.testing import CliRunner
from tht.cli import app
def test_evidence_authoring_accepts_a_canonical_workspace_inside_the_git_worktree(tmp_path):
from tht.cli.evidence_cmd import _canonical_worktree
subprocess.run(["git", "init", "--quiet", str(tmp_path)], check=True)
workspace_root = tmp_path / "psd-clinical"
workspace_root.mkdir()
assert _canonical_worktree(workspace_root) == workspace_root.resolve()
def test_evidence_authoring_commands_are_distinct_from_runtime_preprocessing():
result = CliRunner().invoke(app, ["evidence", "--help"])