Fix formatting. Potential fix to invalid api key error.

This commit is contained in:
Andrej Milicevic 2025-08-25 18:57:45 +02:00
parent e85fd3504a
commit a3d5164129
3 changed files with 7 additions and 2 deletions

View file

@ -78,7 +78,7 @@ class TestCliIntegration:
[sys.executable, "-m", "cognee.cli._cognee", "add", temp_file],
capture_output=True,
text=True,
cwd=Path(__file__).parent.parent.parent, # Go to project root
cwd=Path(__file__).parent.parent.parent.parent, # Go to project root
)
# Note: This might fail due to dependencies, but we're testing the CLI structure

View file

@ -354,6 +354,7 @@ class TestCognifyCommandEdgeCases:
command.execute(args)
mock_asyncio_run.assert_called_once()
class TestDeleteCommandEdgeCases:
"""Test edge cases for DeleteCommand"""
@ -461,7 +462,9 @@ class TestConfigCommandEdgeCases:
args = argparse.Namespace(config_action="set", key="complex_config", value=complex_json)
command.execute(args)
mock_cognee.config.set.assert_called_once_with("complex_config", complex_json_expected_value)
mock_cognee.config.set.assert_called_once_with(
"complex_config", complex_json_expected_value
)
@patch("builtins.__import__")
def test_config_set_invalid_json_value(self, mock_import):

View file

@ -13,6 +13,7 @@ from cognee.cli.config import (
)
from cognee.cli._cognee import _discover_commands
class TestCliConfig:
"""Test CLI configuration constants"""
@ -78,6 +79,7 @@ class TestCliConfig:
for expected_format in expected_formats:
assert expected_format in OUTPUT_FORMAT_CHOICES
class TestCliReference:
"""Test CLI reference protocol"""