chore: worker ruff auto-fix (pre-push lint gate)
This commit is contained in:
@@ -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())}"
|
||||
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user