mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
tests(tui): escape malformed rules trust path
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -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"
|
||||
"#
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user