Skip to content

Commit 7a1c314

Browse files
committed
test: satisfy project lint gates
1 parent e981e52 commit 7a1c314

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎tests/unit/test_helm_values_contract.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,7 @@ def test_serving_bridge_renders_as_separate_clickhouse_consumer():
690690
]
691691
assert len(deployments) == 1
692692
container = deployments[0]["spec"]["template"]["spec"]["containers"][0]
693-
env = {
694-
item["name"]: item.get("value")
695-
for item in container["env"]
696-
}
693+
env = {item["name"]: item.get("value") for item in container["env"]}
697694
assert env["REDIS_URL"] == "redis://redis.data.svc:6379/0"
698695
# Chart defaults persist the kind-stand throughput knobs (2026-08-07 E):
699696
# batch_max 1024 and dedicated CPU/mem headroom for the serving bridge.

‎tests/unit/test_project_claims.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ def test_kind_residual_canary_pass_is_claimed_without_closing_the_soak_gate() ->
212212
assert (ROOT / evidence).is_file()
213213
text = (ROOT / evidence).read_text(encoding="utf-8")
214214
assert "PASS_KIND_RESIDUAL_20" in text
215-
assert "not" in text.lower() and "production" in text.lower()
215+
assert "not" in text.lower()
216+
assert "production" in text.lower()
216217

217218

218219
def test_soak_failure_is_latest_attempt_without_closing_the_gate() -> None:
@@ -238,7 +239,8 @@ def test_soak_failure_is_latest_attempt_without_closing_the_gate() -> None:
238239
failure_text = (ROOT / failure_evidence).read_text(encoding="utf-8")
239240
assert "SOAK_FAIL" in failure_text
240241
assert "UNRESOLVED_FLINK_TERMINAL_FAILURE" in failure_text
241-
assert "not" in failure_text.lower() and "production" in failure_text.lower()
242+
assert "not" in failure_text.lower()
243+
assert "production" in failure_text.lower()
242244
historical_text = (ROOT / historical_start).read_text(encoding="utf-8")
243245
assert "SOAK_RUNNING" in historical_text
244246

0 commit comments

Comments
 (0)