From 4b6f7433c782c8a549ea31d6fb203a54b7217be0 Mon Sep 17 00:00:00 2001 From: Daulet Amirkhanov Date: Mon, 13 Oct 2025 15:24:31 +0100 Subject: [PATCH] test --- .../cli_integration_tests/test_cli_integration.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cognee/tests/cli_tests/cli_integration_tests/test_cli_integration.py b/cognee/tests/cli_tests/cli_integration_tests/test_cli_integration.py index 2509093a0..8c9390ed4 100644 --- a/cognee/tests/cli_tests/cli_integration_tests/test_cli_integration.py +++ b/cognee/tests/cli_tests/cli_integration_tests/test_cli_integration.py @@ -8,6 +8,9 @@ import sys import subprocess from pathlib import Path from unittest.mock import patch, MagicMock +from cognee.shared.logging_utils import get_logger + +logger = get_logger() class TestCliIntegration: @@ -91,7 +94,11 @@ class TestCliIntegration: "loggingworker cancelled" in stderr_lower or "cancellederror" in stderr_lower ) - assert not has_error or has_expected_failure or has_litellm_cancellation + try: + assert not has_error or has_expected_failure or has_litellm_cancellation + except Exception as e: + logger.error(f"{str(e)}", exc_info=True) + raise e finally: os.unlink(temp_file)