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)
This commit is contained in:
parent
bd423004d9
commit
276f4b4a82
1 changed files with 4 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue