From 5185032b283c7e173367333d0936a156e2f385a0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 15:25:01 +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_codex_provider.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/studio/backend/tests/test_codex_provider.py b/studio/backend/tests/test_codex_provider.py index 423b0a10a7..8084917fad 100644 --- a/studio/backend/tests/test_codex_provider.py +++ b/studio/backend/tests/test_codex_provider.py @@ -2047,9 +2047,7 @@ class TestDeviceLoginLogFilter: # caught when the production source is loaded. import importlib - mod = importlib.reload( - importlib.import_module("core.inference.codex_provider") - ) + mod = importlib.reload(importlib.import_module("core.inference.codex_provider")) # Walk the source string to find the patterns; they live inside # the generator. Use a stable proxy: read the regex literals. import re @@ -2059,8 +2057,10 @@ class TestDeviceLoginLogFilter: # phrases AND an unsafe-content blocklist. assert "safe_log_res" in src assert "unsafe_log_re" in src - assert "not\\s+(?:logged|signed)\\s+in" in src or \ - "not\\\\s+(?:logged|signed)\\\\s+in" in src + assert ( + "not\\s+(?:logged|signed)\\s+in" in src + or "not\\\\s+(?:logged|signed)\\\\s+in" in src + ) return None def test_safe_log_source_has_anchored_patterns_and_blocklist(self): @@ -2117,8 +2117,9 @@ class TestDeviceLoginLogFilter: "Browser opened", "Press Ctrl+C to cancel", ]: - assert any(pat.search(clean) for pat in safe_log_res), \ - f"clean line should match safe: {clean!r}" + assert any( + pat.search(clean) for pat in safe_log_res + ), f"clean line should match safe: {clean!r}" # ── Round 8: stream replay protection on non-visible events ──────────