fix: l is an ambiguous name and ruff says so (4295)
CI and images / lint (push) Successful in 3s
CI and images / extension-version (push) Successful in 3s
CI and images / frontend-build (push) Successful in 25s
CI and images / backend-lint-and-test (push) Successful in 31s
CI and images / integration (push) Successful in 2m14s
CI and images / sign-extension (push) Successful in 3s
CI and images / build-agent (push) Successful in 6s
CI and images / build-web (push) Successful in 1m56s
CI and images / smoke-web (push) Successful in 1m1s
CI and images / promote (push) Skipped
CI and images / lint (push) Successful in 3s
CI and images / extension-version (push) Successful in 3s
CI and images / frontend-build (push) Successful in 25s
CI and images / backend-lint-and-test (push) Successful in 31s
CI and images / integration (push) Successful in 2m14s
CI and images / sign-extension (push) Successful in 3s
CI and images / build-agent (push) Successful in 6s
CI and images / build-web (push) Successful in 1m56s
CI and images / smoke-web (push) Successful in 1m1s
CI and images / promote (push) Skipped
E741, run 7410. Two comprehensions in the new endpoint tests. Every other lane was green — backend unit, frontend and integration — and nothing published, which is the gate doing its job. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LVjrnpQjRgHdvq95rASoiR
This commit is contained in:
@@ -373,7 +373,7 @@ async def test_the_stored_sample_is_what_the_page_shows(client, db, monkeypatch)
|
||||
"thumbnail": 0, "download": 0})
|
||||
|
||||
body = await (await client.get("/api/system/workers")).get_json()
|
||||
worker = next(l for l in body["lanes"] if l["name"] == "worker")
|
||||
worker = next(r for r in body["lanes"] if r["name"] == "worker")
|
||||
|
||||
assert worker["live"] == {
|
||||
"present": True, "replicas": 1, "pool": 4, "active": 2, "reserved": 3,
|
||||
@@ -401,7 +401,7 @@ async def test_a_lane_that_stopped_answering_overwrites_its_old_reading(
|
||||
await _store_sample(db, {lane.name: wc.LaneLiveState() for lane in LANES}, {})
|
||||
|
||||
body = await (await client.get("/api/system/workers")).get_json()
|
||||
worker = next(l for l in body["lanes"] if l["name"] == "worker")
|
||||
worker = next(r for r in body["lanes"] if r["name"] == "worker")
|
||||
|
||||
assert worker["live"]["present"] is False
|
||||
assert worker["live"]["pool"] is None
|
||||
|
||||
Reference in New Issue
Block a user