mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Export As trial reads the registry through install::command_specs, so it holds in a process of its own
This commit is contained in:
1 parent
f454882458
commit
0cc267d2db
1 file changed
+1
-1
@@ -963,7 +963,7 @@ fn decontamination_alpha_keeps_missing_source_alpha_only_inside_bounds() {
|
||||
|
||||
#[test]
|
||||
fn layer_export_as_names_every_resample_method_in_the_presets_order() {
|
||||
let spec = crate::registry::command_specs().iter().find(|c| c.id == "layer.exportAs").unwrap();
|
||||
let spec = crate::install::command_specs().iter().find(|c| c.id == "layer.exportAs").unwrap();
|
||||
let keys: Vec<&str> = crate::export_preset_cmds::RESAMPLE.iter().map(|(key, _)| *key).collect();
|
||||
assert!(spec.params.contains(&format!("\"resample\":\"{}\"", keys.join("|"))), "{}", spec.params);
|
||||
}
|
||||
Reference in new issue
Block a user