From 276f4b4a82f0344b3d9f332b4a693f5f87b07927 Mon Sep 17 00:00:00 2001 From: chengjie Date: Tue, 11 Nov 2025 09:18:33 +0800 Subject: [PATCH] fix: resolve ruff format check failure in test file Why this change is needed: The CI lint-and-format check is failing due to a line length violation in test_workspace_lock_bugfixes.py line 73. The assert statement exceeds the maximum line length enforced by ruff formatter. How it solves it: Split the long assert statement into multiple lines following Python's continuation syntax, making it compliant with ruff's line length rules. Impact: - CI lint-and-format check will now pass - Code readability is improved with proper line breaks - No functional changes to test logic Testing: Verified with: uv run pre-commit run --files tests/test_workspace_lock_bugfixes.py Result: All checks passed (ruff-format, ruff linting) --- tests/test_workspace_lock_bugfixes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_workspace_lock_bugfixes.py b/tests/test_workspace_lock_bugfixes.py index 1d26981e..13c4b0ae 100644 --- a/tests/test_workspace_lock_bugfixes.py +++ b/tests/test_workspace_lock_bugfixes.py @@ -70,7 +70,10 @@ def test_workspace_async_locks_per_process(): assert lock1._async_lock is lock2._async_lock # Verify it's the same as the one stored in _workspace_async_locks - assert lock1._async_lock is shared_storage._workspace_async_locks["tenant1:storage_lock"] + assert ( + lock1._async_lock + is shared_storage._workspace_async_locks["tenant1:storage_lock"] + ) def test_multiple_workspace_locks_different_async_locks():