chore: worker ruff auto-fix (pre-push lint gate)

This commit is contained in:
cleveragents-auto
2026-05-29 01:41:38 -04:00
committed by drew
parent 5ede1c018a
commit ee1ec2b56d
2 changed files with 5 additions and 10 deletions
+3 -9
View File
@@ -1069,27 +1069,21 @@ def step_facade_ok(context: Any) -> None:
assert context.facade_response.error is None, (
f"Expected no error, got {context.facade_response.error}"
)
assert context.facade_response.result is not None, (
"Expected result to be set"
)
assert context.facade_response.result is not None, "Expected result to be set"
@then('the facade response data should have "{key}" set to true')
def step_facade_stub_true(context: Any, key: str) -> None:
result = context.facade_response.result or {}
assert result.get(key) is True, (
f"Expected result['{key}'] to be True, "
f"got {result.get(key)}"
f"Expected result['{key}'] to be True, got {result.get(key)}"
)
@then('the facade response data should contain key "{key}"')
def step_facade_has_key(context: Any, key: str) -> None:
result = context.facade_response.result or {}
assert key in result, (
f"Expected key '{key}' in result, "
f"got: {list(result.keys())}"
)
assert key in result, f"Expected key '{key}' in result, got: {list(result.keys())}"
# ------------------------------------------------------------------
+2 -1
View File
@@ -229,7 +229,8 @@ def sync_facade_no_service() -> None:
result = response.result or {}
if response.error is not None or not result.get("stub"):
print(
f"FAIL: {op} should return stub, got {response.error or result}", file=sys.stderr
f"FAIL: {op} should return stub, got {response.error or result}",
file=sys.stderr,
)
sys.exit(1)
print("sync-facade-no-service-ok")