From 3765f04407afc6d2c77f13765ddbe38f2f68493d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 04:25:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/tests/test_desktop_auth.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/studio/backend/tests/test_desktop_auth.py b/studio/backend/tests/test_desktop_auth.py index 5d53ad8898..0920b8837c 100644 --- a/studio/backend/tests/test_desktop_auth.py +++ b/studio/backend/tests/test_desktop_auth.py @@ -153,10 +153,13 @@ def test_bootstrap_password_round_trips_across_a_restart_with_the_newline(): assert storage.generate_bootstrap_password() == original -@pytest.mark.parametrize("legacy", [ - b"legacy-bootstrap-secret", # written before the newline existed - b"legacy-bootstrap-secret\r\n", # written by text mode on Windows -]) +@pytest.mark.parametrize( + "legacy", + [ + b"legacy-bootstrap-secret", # written before the newline existed + b"legacy-bootstrap-secret\r\n", # written by text mode on Windows + ], +) def test_upgrade_normalises_the_bootstrap_file(legacy): # The upgrade path is ensure_default_admin() on an install that already has # the admin row, which never reaches generate_bootstrap_password(). @@ -213,8 +216,11 @@ def test_persisting_the_bootstrap_password_is_atomic(monkeypatch, tmp_path): storage._persist_bootstrap_password("new-secret") assert storage._BOOTSTRAP_PW_PATH.read_bytes() == b"original-secret\n" - leftovers = [p.name for p in storage._BOOTSTRAP_PW_PATH.parent.iterdir() - if "bootstrap_password." in p.name] + leftovers = [ + p.name + for p in storage._BOOTSTRAP_PW_PATH.parent.iterdir() + if "bootstrap_password." in p.name + ] assert leftovers == []