Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/openplotva-app/src/dialog_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5896,6 +5896,7 @@ mod tests {
photo_file_id: "latest-photo-file".to_owned(),
photo_urls: Vec::new(),
photo_file_ids: vec!["latest-photo-file".to_owned()],
caption: String::new(),
}]
);
// Album delivery: one placeholder frame (single editor) filled with the
Expand Down
6 changes: 4 additions & 2 deletions crates/openplotva-app/src/dialog_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4820,7 +4820,9 @@ mod tests {
step: "draw_image".to_owned(),
prompt: input.message.text.clone(),
caption: "Combined photos".to_owned(),
file_ids: (11..=20)
file_ids: (11..)
.take(MAX_IMAGE_EDIT_SOURCE_IMAGES - 1)
.chain(std::iter::once(20))
.map(|message_id| format!("message_{message_id}_image_1"))
.collect(),
..Default::default()
Expand Down Expand Up @@ -4960,7 +4962,7 @@ mod tests {
assert!(
selected
.expect_err("too many sources")
.contains("at most 10")
.contains(&format!("at most {MAX_IMAGE_EDIT_SOURCE_IMAGES}"))
);
}
}
Expand Down
Loading
Loading