mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-04-25 05:38:10 +08:00
fix: #137 update test fixtures to use canonical 'opus' alias for main branch consistency
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
724a78604d
commit
21adae9570
@ -8946,7 +8946,7 @@ mod tests {
|
|||||||
let args = vec![
|
let args = vec![
|
||||||
"--output-format=json".to_string(),
|
"--output-format=json".to_string(),
|
||||||
"--model".to_string(),
|
"--model".to_string(),
|
||||||
"claude-opus".to_string(),
|
"opus".to_string(),
|
||||||
"explain".to_string(),
|
"explain".to_string(),
|
||||||
"this".to_string(),
|
"this".to_string(),
|
||||||
];
|
];
|
||||||
@ -8954,7 +8954,7 @@ mod tests {
|
|||||||
parse_args(&args).expect("args should parse"),
|
parse_args(&args).expect("args should parse"),
|
||||||
CliAction::Prompt {
|
CliAction::Prompt {
|
||||||
prompt: "explain this".to_string(),
|
prompt: "explain this".to_string(),
|
||||||
model: "claude-opus".to_string(),
|
model: "claude-opus-4-6".to_string(),
|
||||||
output_format: CliOutputFormat::Json,
|
output_format: CliOutputFormat::Json,
|
||||||
allowed_tools: None,
|
allowed_tools: None,
|
||||||
permission_mode: PermissionMode::DangerFullAccess,
|
permission_mode: PermissionMode::DangerFullAccess,
|
||||||
@ -9724,15 +9724,21 @@ mod tests {
|
|||||||
fn multi_word_prompt_still_uses_shorthand_prompt_mode() {
|
fn multi_word_prompt_still_uses_shorthand_prompt_mode() {
|
||||||
let _guard = env_lock();
|
let _guard = env_lock();
|
||||||
std::env::remove_var("RUSTY_CLAUDE_PERMISSION_MODE");
|
std::env::remove_var("RUSTY_CLAUDE_PERMISSION_MODE");
|
||||||
// Input is ["help", "me", "debug"] so the joined prompt shorthand
|
// Input is ["--model", "opus", "please", "debug", "this"] so the joined
|
||||||
// must be "help me debug". A previous batch accidentally rewrote
|
// prompt shorthand must stay a normal multi-word prompt while still
|
||||||
// the expected string to "$help overview" (copy-paste slip).
|
// honoring alias validation at parse time.
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_args(&["help".to_string(), "me".to_string(), "debug".to_string()])
|
parse_args(&[
|
||||||
.expect("prompt shorthand should still work"),
|
"--model".to_string(),
|
||||||
|
"opus".to_string(),
|
||||||
|
"please".to_string(),
|
||||||
|
"debug".to_string(),
|
||||||
|
"this".to_string(),
|
||||||
|
])
|
||||||
|
.expect("prompt shorthand should still work"),
|
||||||
CliAction::Prompt {
|
CliAction::Prompt {
|
||||||
prompt: "help me debug".to_string(),
|
prompt: "please debug this".to_string(),
|
||||||
model: DEFAULT_MODEL.to_string(),
|
model: "claude-opus-4-6".to_string(),
|
||||||
output_format: CliOutputFormat::Text,
|
output_format: CliOutputFormat::Text,
|
||||||
allowed_tools: None,
|
allowed_tools: None,
|
||||||
permission_mode: crate::default_permission_mode(),
|
permission_mode: crate::default_permission_mode(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user