We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16a7e85 commit 824ba72Copy full SHA for 824ba72
1 file changed
tests/model_serving/model_server/upgrade/utils.py
@@ -401,8 +401,7 @@ def verify_gateway_accepted(gateway: Gateway) -> None:
401
402
conditions = gateway.instance.status.get("conditions", [])
403
is_accepted = any(
404
- condition.get("type") == "Accepted" and condition.get("status") == "True"
405
- for condition in conditions
+ condition.get("type") == "Accepted" and condition.get("status") == "True" for condition in conditions
406
)
407
if not is_accepted:
408
raise AssertionError(f"Gateway {gateway.name} is not Accepted. Conditions: {conditions}")
0 commit comments