From 4492547741fa1c1ef3f84472d3804181026b945f Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Sun, 19 Oct 2025 12:35:19 +0200 Subject: [PATCH] LCORE-840: fixed issues found in utils.py --- tests/e2e/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/utils/utils.py b/tests/e2e/utils/utils.py index e58a0a2be..3dc44076f 100644 --- a/tests/e2e/utils/utils.py +++ b/tests/e2e/utils/utils.py @@ -67,7 +67,7 @@ def wait_for_container_health(container_name: str, max_attempts: int = 3) -> Non print(f"Could not check health status for {container_name}") -def validate_json_partially(actual: Any, expected: Any): +def validate_json_partially(actual: Any, expected: Any) -> None: """Recursively validate that `actual` JSON contains all keys and values specified in `expected`. Extra elements/keys are ignored. Raises AssertionError if validation fails. @@ -137,7 +137,7 @@ def restart_container(container_name: str) -> None: check=True, ) except (subprocess.CalledProcessError, subprocess.TimeoutExpired) as e: - print(f"Failed to restart container {container_name}: {e.stderr}") + print(f"Failed to restart container {container_name}: {str(e.stderr)}") raise # Wait for container to be healthy