From 66b8bb39b5a6c414f5b88700bc4530b8fa9efb96 Mon Sep 17 00:00:00 2001 From: Andrej Milicevic Date: Mon, 25 Aug 2025 19:16:59 +0200 Subject: [PATCH] Another potential fix for the invalid API key error. --- cognee/tests/integration/cli/test_cli_integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cognee/tests/integration/cli/test_cli_integration.py b/cognee/tests/integration/cli/test_cli_integration.py index f2e962fc8..59611bb09 100644 --- a/cognee/tests/integration/cli/test_cli_integration.py +++ b/cognee/tests/integration/cli/test_cli_integration.py @@ -78,7 +78,8 @@ class TestCliIntegration: [sys.executable, "-m", "cognee.cli._cognee", "add", temp_file], capture_output=True, text=True, - cwd=Path(__file__).parent.parent.parent.parent, # Go to project root + cwd=Path(__file__).parent.parent.parent, # Go to project root + env=os.environ, ) # Note: This might fail due to dependencies, but we're testing the CLI structure