fix(evidence): support nested workspace roots
This commit is contained in:
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user