diff --git a/features/steps/entity_sync_steps.py b/features/steps/entity_sync_steps.py index 69719d892..b55af2063 100644 --- a/features/steps/entity_sync_steps.py +++ b/features/steps/entity_sync_steps.py @@ -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())}" # ------------------------------------------------------------------ diff --git a/robot/helper_entity_sync.py b/robot/helper_entity_sync.py index e83e3d457..4a7009492 100644 --- a/robot/helper_entity_sync.py +++ b/robot/helper_entity_sync.py @@ -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")