From 4d85dc3484ecc37d46e726575c0ed4af8ab1237a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 May 2026 11:50:04 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/studio/playwright_chat_ime_i18n.py | 4 +--- tests/studio/test_composer_rtl_bidi_attribute.py | 12 +++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tests/studio/playwright_chat_ime_i18n.py b/tests/studio/playwright_chat_ime_i18n.py index afc089b473..7e843ac58f 100644 --- a/tests/studio/playwright_chat_ime_i18n.py +++ b/tests/studio/playwright_chat_ime_i18n.py @@ -472,9 +472,7 @@ with sync_playwright() as p: ) after_value = read_value() if "你好" not in after_value: - soft_fail( - f"compositionend-watchdog repro lost committed text: {after_value!r}" - ) + soft_fail(f"compositionend-watchdog repro lost committed text: {after_value!r}") shoot("06b-compositionend-watchdog") info("compositionend watchdog recovery PASS") clear() diff --git a/tests/studio/test_composer_rtl_bidi_attribute.py b/tests/studio/test_composer_rtl_bidi_attribute.py index 588bc38b3f..591e731b0f 100644 --- a/tests/studio/test_composer_rtl_bidi_attribute.py +++ b/tests/studio/test_composer_rtl_bidi_attribute.py @@ -80,8 +80,7 @@ def test_main_composer_has_stuck_compositionend_watchdog(): forever and CJK input is effectively dropped.""" src = THREAD_TSX.read_text() assert "IME_STUCK_TIMEOUT_MS" in src, ( - "main composer is missing the stuck-compositionend watchdog " - "(issue #5546)" + "main composer is missing the stuck-compositionend watchdog " "(issue #5546)" ) assert "onCompositionUpdate" in src, ( "main composer is missing onCompositionUpdate wiring; the " @@ -92,9 +91,8 @@ def test_main_composer_has_stuck_compositionend_watchdog(): def test_compare_composer_has_stuck_compositionend_watchdog(): src = SHARED_TSX.read_text() assert "IME_STUCK_TIMEOUT_MS" in src, ( - "compare composer is missing the stuck-compositionend watchdog " - "(issue #5546)" - ) - assert "onCompositionUpdate" in src, ( - "compare composer is missing onCompositionUpdate wiring" + "compare composer is missing the stuck-compositionend watchdog " "(issue #5546)" ) + assert ( + "onCompositionUpdate" in src + ), "compare composer is missing onCompositionUpdate wiring"