Skip to content

Commit 0e3cf67

Browse files
simplify heredoc function test
1 parent 166aecd commit 0e3cf67

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

codex-rs/core/tests/suite/apply_patch_cli.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -797,13 +797,7 @@ async fn apply_patch_shell_failure_propagates_error_and_skips_diff() -> Result<(
797797
}
798798

799799
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
800-
#[test_case(ApplyPatchModelOutput::Freeform)]
801-
#[test_case(ApplyPatchModelOutput::Function)]
802-
#[test_case(ApplyPatchModelOutput::Shell)]
803-
#[test_case(ApplyPatchModelOutput::ShellViaHeredoc)]
804-
async fn apply_patch_function_accepts_lenient_heredoc_wrapped_patch(
805-
model_output: ApplyPatchModelOutput,
806-
) -> Result<()> {
800+
async fn apply_patch_function_accepts_lenient_heredoc_wrapped_patch() -> Result<()> {
807801
skip_if_no_network!(Ok(()));
808802

809803
let harness = apply_patch_harness().await?;
@@ -814,7 +808,12 @@ async fn apply_patch_function_accepts_lenient_heredoc_wrapped_patch(
814808
let wrapped = format!("<<'EOF'\n{patch_inner}EOF\n");
815809
let call_id = "apply-lenient";
816810
harness
817-
.mount_apply_patch_call(call_id, wrapped.as_str(), "ok", model_output)
811+
.mount_apply_patch_call(
812+
call_id,
813+
wrapped.as_str(),
814+
"ok",
815+
ApplyPatchModelOutput::Function,
816+
)
818817
.await;
819818

820819
harness.submit("apply lenient heredoc patch").await?;

0 commit comments

Comments
 (0)