mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 11:37:59 -06:00
Integration: cargo fmt
This commit is contained in:
@@ -582,7 +582,8 @@ mod cups_options {
|
||||
(boundary_queue.as_str(), "Tray2", "Tray2"),
|
||||
(boundary_instance.as_str(), "Tray2", "Tray2"),
|
||||
] {
|
||||
let options = spool::printer_options_via_within(destination, &dir, command(&dir, &format!("InputSlot/Paper tray: *{current}")), LIMIT, "en");
|
||||
let options =
|
||||
spool::printer_options_via_within(destination, &dir, command(&dir, &format!("InputSlot/Paper tray: *{current}")), LIMIT, "en");
|
||||
assert_eq!(options.len(), 1, "{destination}: the queue's PPD must be read");
|
||||
assert_eq!(options[0].default, expected, "{destination}: only valid instance choices override the PPD default");
|
||||
assert_eq!(options[0].choices, [("Auto".into(), "Automatic".into()), ("Tray2".into(), "Tray 2".into())]);
|
||||
@@ -623,7 +624,10 @@ mod cups_options {
|
||||
long_queue_instance.as_str(),
|
||||
long_instance.as_str(),
|
||||
] {
|
||||
assert!(spool::printer_options_via_within(destination, &dir, command(&dir, "InputSlot: *Auto"), LIMIT, "en").is_empty(), "{destination:?}");
|
||||
assert!(
|
||||
spool::printer_options_via_within(destination, &dir, command(&dir, "InputSlot: *Auto"), LIMIT, "en").is_empty(),
|
||||
"{destination:?}"
|
||||
);
|
||||
assert!(!dir.join("args").exists(), "{destination:?}: rejected before spawning");
|
||||
}
|
||||
std::fs::remove_dir_all(dir).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user