treefmt v2.5.0traversed 493 files emitted 345 files for processing formatted 345 files (1 changed) in 1.054s M checks/spaces-integrations-app-form/driver.py diff --git a/checks/spaces-integrations-app-form/driver.py b/checks/spaces-integrations-app-form/driver.py index 1e2aee7..b7b9f8e 100755 --- a/checks/spaces-integrations-app-form/driver.py +++ b/checks/spaces-integrations-app-form/driver.py @@ -39,12 +39,16 @@ def main() -> None: broker = spawn( [sys.executable, os.path.join(test_dir, "fake_broker.py"), sock_path], - work_dir, "broker.log", env=env, + work_dir, + "broker.log", + env=env, ) if not wait_for_path(sock_path, timeout_s=10): fail(f"fake broker never bound {sock_path} (exit={broker.poll()})") - qs = Quickshell(qs_bin, shell_qml, env, work_dir, ipc_target="test:integrations-form") + qs = Quickshell( + qs_bin, shell_qml, env, work_dir, ipc_target="test:integrations-form" + ) qs.start() def die(msg): @@ -94,10 +98,16 @@ def main() -> None: # this is what the window-level form cache guarantees. ipc("winRefresh", "mail") time.sleep(0.3) - for f, v in (("email", "me@x.com"), ("imap_host", "imap.x.com"), ("smtp_host", "smtp.x.com")): + for f, v in ( + ("email", "me@x.com"), + ("imap_host", "imap.x.com"), + ("smtp_host", "smtp.x.com"), + ): got = ipc("getValue", "mail", "__new__", f) if got != v: - die(f"a re-list dropped in-progress field {f!r}: got {got!r}, want {v!r}") + die( + f"a re-list dropped in-progress field {f!r}: got {got!r}, want {v!r}" + ) ipc("setValue", "mail", "__new__", "password", "hunter2") if ipc("formDirty", "mail", "__new__") != "true": @@ -105,13 +115,19 @@ def main() -> None: # One Save writes the whole form. if ipc("click", "profileSave-mail-work") != "clicked": - die(f"profile Save button not clickable: {ipc('click', 'profileSave-mail-work')!r}") + die( + f"profile Save button not clickable: {ipc('click', 'profileSave-mail-work')!r}" + ) if not wait_until(lambda: prof("work") is not None, timeout_s=15): die(f"profile 'work' never appeared after Save: {mail()!r}") p = prof("work") cfg = p.get("config", {}) - if cfg.get("email") != "me@x.com" or cfg.get("imap_host") != "imap.x.com" or cfg.get("smtp_host") != "smtp.x.com": + if ( + cfg.get("email") != "me@x.com" + or cfg.get("imap_host") != "imap.x.com" + or cfg.get("smtp_host") != "smtp.x.com" + ): die(f"config fields lost on Save (the regression): {p!r}") if p.get("secrets", {}).get("password") is not True: die(f"password secret not set after Save: {p!r}")