treefmt-check
default.checks.x86_64-linux.treefmt
· build #80
· raw
1treefmt v2.5.0traversed 493 files2emitted 345 files for processing3formatted 345 files (1 changed) in 1.054s4 M checks/spaces-integrations-app-form/driver.py5diff --git a/checks/spaces-integrations-app-form/driver.py b/checks/spaces-integrations-app-form/driver.py6index 1e2aee7..b7b9f8e 1007557--- a/checks/spaces-integrations-app-form/driver.py8+++ b/checks/spaces-integrations-app-form/driver.py9@@ -39,12 +39,16 @@ def main() -> None:10 11 broker = spawn(12 [sys.executable, os.path.join(test_dir, "fake_broker.py"), sock_path],13- work_dir, "broker.log", env=env,14+ work_dir,15+ "broker.log",16+ env=env,17 )18 if not wait_for_path(sock_path, timeout_s=10):19 fail(f"fake broker never bound {sock_path} (exit={broker.poll()})")20 21- qs = Quickshell(qs_bin, shell_qml, env, work_dir, ipc_target="test:integrations-form")22+ qs = Quickshell(23+ qs_bin, shell_qml, env, work_dir, ipc_target="test:integrations-form"24+ )25 qs.start()26 27 def die(msg):28@@ -94,10 +98,16 @@ def main() -> None:29 # this is what the window-level form cache guarantees.30 ipc("winRefresh", "mail")31 time.sleep(0.3)32- for f, v in (("email", "me@x.com"), ("imap_host", "imap.x.com"), ("smtp_host", "smtp.x.com")):33+ for f, v in (34+ ("email", "me@x.com"),35+ ("imap_host", "imap.x.com"),36+ ("smtp_host", "smtp.x.com"),37+ ):38 got = ipc("getValue", "mail", "__new__", f)39 if got != v:40- die(f"a re-list dropped in-progress field {f!r}: got {got!r}, want {v!r}")41+ die(42+ f"a re-list dropped in-progress field {f!r}: got {got!r}, want {v!r}"43+ )44 45 ipc("setValue", "mail", "__new__", "password", "hunter2")46 if ipc("formDirty", "mail", "__new__") != "true":47@@ -105,13 +115,19 @@ def main() -> None:48 49 # One Save writes the whole form.50 if ipc("click", "profileSave-mail-work") != "clicked":51- die(f"profile Save button not clickable: {ipc('click', 'profileSave-mail-work')!r}")52+ die(53+ f"profile Save button not clickable: {ipc('click', 'profileSave-mail-work')!r}"54+ )55 56 if not wait_until(lambda: prof("work") is not None, timeout_s=15):57 die(f"profile 'work' never appeared after Save: {mail()!r}")58 p = prof("work")59 cfg = p.get("config", {})60- if cfg.get("email") != "me@x.com" or cfg.get("imap_host") != "imap.x.com" or cfg.get("smtp_host") != "smtp.x.com":61+ if (62+ cfg.get("email") != "me@x.com"63+ or cfg.get("imap_host") != "imap.x.com"64+ or cfg.get("smtp_host") != "smtp.x.com"65+ ):66 die(f"config fields lost on Save (the regression): {p!r}")67 if p.get("secrets", {}).get("password") is not True:68 die(f"password secret not set after Save: {p!r}")