test: allow script writes in script_imports_footage_and_saves

This commit is contained in:
Dylan M. Taylor
2026-11-10 22:59:44 +00:00
parent 5d12c8a7d7
commit a597053bf5
+1
View File
@@ -546,6 +546,7 @@ fn script_imports_footage_and_saves() {
std::fs::create_dir_all(&dir).unwrap();
let q = |n: &str| serde_json::to_string(&dir.join(n).to_string_lossy()).unwrap();
let mut s = super::session();
s.execute("prefs.set", json!({"key": "scripting.allowScriptsWriteFiles", "value": true})).unwrap();
let code = format!(
r#"
var c = app.project.items.addComp("Src", 32, 32, 1, 1, 10);