test: cover explicit git -C terminal probe

This commit is contained in:
2026-07-09 10:43:42 -04:00
parent 223cde1b94
commit f558b80cc8
3 changed files with 44 additions and 6 deletions
+10 -2
View File
@@ -7928,8 +7928,16 @@ def gitea_diagnose_terminal(
return {
"healthy": probe_res["healthy"],
"error_type": None if probe_res["healthy"] else probe_res["error_type"] or diag["error_type"],
"error_msg": "" if probe_res["healthy"] else probe_res["error_msg"] or diag["error_msg"],
"error_type": (
None
if probe_res["healthy"]
else probe_res["error_type"] or diag["error_type"]
),
"error_msg": (
""
if probe_res["healthy"]
else probe_res["error_msg"] or diag["error_msg"]
),
"cwd": resolved_cwd,
"command": probe_cmd,
"diagnostics": diag,