tests(tui): escape malformed rules trust path

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-03-13 16:37:43 +00:00
parent 6ea03f988f
commit b67f16683f

View File

@@ -169,11 +169,11 @@ mod tests {
codex_home: &Path,
cwd: &Path,
) -> std::io::Result<Config> {
let cwd_display = cwd.display();
let cwd_display = cwd.display().to_string().replace('\'', "''");
let config_contents = format!(
r#"model_provider = "ollama"
[projects."{cwd_display}"]
[projects.'{cwd_display}']
trust_level = "trusted"
"#
);