diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/loop.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/loop.rs b/tests/loop.rs index e913302..8c913cd 100644 --- a/tests/loop.rs +++ b/tests/loop.rs | |||
| @@ -99,6 +99,8 @@ fn runs_a_tool_call_then_finishes_and_records_every_message() { | |||
| 99 | model: "test-model".into(), | 99 | model: "test-model".into(), |
| 100 | session: session.id.clone(), | 100 | session: session.id.clone(), |
| 101 | yolo: true, | 101 | yolo: true, |
| 102 | lenient: false, | ||
| 103 | system_ca: false, | ||
| 102 | }; | 104 | }; |
| 103 | let mut history = agent::new_history(system); | 105 | let mut history = agent::new_history(system); |
| 104 | let mut approver = Approver::new(true); | 106 | let mut approver = Approver::new(true); |
| @@ -170,6 +172,8 @@ fn a_denied_tool_call_is_returned_as_data() { | |||
| 170 | model: "test-model".into(), | 172 | model: "test-model".into(), |
| 171 | session: session.id.clone(), | 173 | session: session.id.clone(), |
| 172 | yolo: false, | 174 | yolo: false, |
| 175 | lenient: false, | ||
| 176 | system_ca: false, | ||
| 173 | }; | 177 | }; |
| 174 | let mut history = agent::new_history(system); | 178 | let mut history = agent::new_history(system); |
| 175 | // Not a terminal, so the approver must deny rather than block. | 179 | // Not a terminal, so the approver must deny rather than block. |
| @@ -238,6 +242,8 @@ fn aborting_between_tool_calls_answers_every_call() { | |||
| 238 | model: "test-model".into(), | 242 | model: "test-model".into(), |
| 239 | session: session.id.clone(), | 243 | session: session.id.clone(), |
| 240 | yolo: true, | 244 | yolo: true, |
| 245 | lenient: false, | ||
| 246 | system_ca: false, | ||
| 241 | }; | 247 | }; |
| 242 | let mut history = agent::new_history(system); | 248 | let mut history = agent::new_history(system); |
| 243 | let mut approver = Approver::new(true); | 249 | let mut approver = Approver::new(true); |
| @@ -313,6 +319,8 @@ fn opening_a_session_with_unanswered_calls_repairs_it() { | |||
| 313 | model: "test-model".into(), | 319 | model: "test-model".into(), |
| 314 | session: session.id.clone(), | 320 | session: session.id.clone(), |
| 315 | yolo: true, | 321 | yolo: true, |
| 322 | lenient: false, | ||
| 323 | system_ca: false, | ||
| 316 | }; | 324 | }; |
| 317 | let mut approver = Approver::new(true); | 325 | let mut approver = Approver::new(true); |
| 318 | agent::run_turn( | 326 | agent::run_turn( |
| @@ -367,6 +375,8 @@ fn an_empty_bash_call_is_never_approved() { | |||
| 367 | model: "test-model".into(), | 375 | model: "test-model".into(), |
| 368 | session: session.id.clone(), | 376 | session: session.id.clone(), |
| 369 | yolo: false, | 377 | yolo: false, |
| 378 | lenient: false, | ||
| 379 | system_ca: false, | ||
| 370 | }; | 380 | }; |
| 371 | let mut history = agent::new_history(system); | 381 | let mut history = agent::new_history(system); |
| 372 | // Not a terminal: if this reaches the approval path it is denied, which the | 382 | // Not a terminal: if this reaches the approval path it is denied, which the |
| @@ -421,6 +431,8 @@ fn a_tool_call_with_no_arguments_is_reported_to_the_model() { | |||
| 421 | model: "test-model".into(), | 431 | model: "test-model".into(), |
| 422 | session: session.id.clone(), | 432 | session: session.id.clone(), |
| 423 | yolo: false, | 433 | yolo: false, |
| 434 | lenient: false, | ||
| 435 | system_ca: false, | ||
| 424 | }; | 436 | }; |
| 425 | let mut history = agent::new_history(system); | 437 | let mut history = agent::new_history(system); |
| 426 | let mut approver = Approver::new(false); | 438 | let mut approver = Approver::new(false); |
| @@ -475,6 +487,8 @@ fn a_wrong_argument_key_names_both_keys() { | |||
| 475 | model: "test-model".into(), | 487 | model: "test-model".into(), |
| 476 | session: session.id.clone(), | 488 | session: session.id.clone(), |
| 477 | yolo: false, | 489 | yolo: false, |
| 490 | lenient: false, | ||
| 491 | system_ca: false, | ||
| 478 | }; | 492 | }; |
| 479 | let mut history = agent::new_history(system); | 493 | let mut history = agent::new_history(system); |
| 480 | let mut approver = Approver::new(false); | 494 | let mut approver = Approver::new(false); |
