Skip to content

Commit 0f60616

Browse files
committed
Fix formatting inconsistencies in test_install.py: standardize quotes and add missing commas for improved readability.
1 parent 43f056f commit 0f60616

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

test_install.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
class TestResult:
1919
"""Store test results."""
20+
2021
def __init__(self, name: str, passed: bool, error: str = ""):
2122
self.name = name
2223
self.passed = passed
@@ -50,7 +51,8 @@ def test_basic_imports():
5051
def test_version():
5152
"""Test package version."""
5253
import hippocampai
53-
assert hasattr(hippocampai, '__version__')
54+
55+
assert hasattr(hippocampai, "__version__")
5456
print(f" Package version: {hippocampai.__version__}")
5557

5658

@@ -59,7 +61,7 @@ def test_memory_type_enum():
5961
from hippocampai.models.memory import MemoryType
6062

6163
# Check all expected memory types exist
62-
expected_types = ['preference', 'fact', 'goal', 'event', 'habit', 'context']
64+
expected_types = ["preference", "fact", "goal", "event", "habit", "context"]
6365
for mem_type in expected_types:
6466
assert hasattr(MemoryType, mem_type.upper())
6567

@@ -80,7 +82,7 @@ def test_memory_model():
8082
type=MemoryType.FACT,
8183
timestamp=datetime.now(),
8284
importance=0.8,
83-
embedding=[0.1] * 384 # Typical embedding dimension
85+
embedding=[0.1] * 384, # Typical embedding dimension
8486
)
8587

8688
assert memory.id == "test_123"
@@ -108,6 +110,7 @@ def test_cli_imports():
108110
def test_api_imports():
109111
"""Test API module imports."""
110112
from hippocampai.api import app
113+
111114
assert app is not None
112115
print(" API module imported successfully")
113116

@@ -189,26 +192,26 @@ def test_package_metadata():
189192
import hippocampai
190193

191194
# Check for standard attributes
192-
assert hasattr(hippocampai, '__version__')
193-
assert hasattr(hippocampai, '__all__')
195+
assert hasattr(hippocampai, "__version__")
196+
assert hasattr(hippocampai, "__all__")
194197

195198
# Check exported symbols
196-
assert 'MemoryClient' in hippocampai.__all__
197-
assert 'Memory' in hippocampai.__all__
198-
assert 'MemoryType' in hippocampai.__all__
199+
assert "MemoryClient" in hippocampai.__all__
200+
assert "Memory" in hippocampai.__all__
201+
assert "MemoryType" in hippocampai.__all__
199202

200203
print(f" Package exports: {', '.join(hippocampai.__all__)}")
201204

202205

203206
def test_dependencies():
204207
"""Test that key dependencies are available."""
205208
dependencies = [
206-
('qdrant_client', 'Qdrant Client'),
207-
('sentence_transformers', 'Sentence Transformers'),
208-
('rank_bm25', 'BM25'),
209-
('pydantic', 'Pydantic'),
210-
('fastapi', 'FastAPI'),
211-
('typer', 'Typer'),
209+
("qdrant_client", "Qdrant Client"),
210+
("sentence_transformers", "Sentence Transformers"),
211+
("rank_bm25", "BM25"),
212+
("pydantic", "Pydantic"),
213+
("fastapi", "FastAPI"),
214+
("typer", "Typer"),
212215
]
213216

214217
missing = []
@@ -241,7 +244,7 @@ def print_summary(results: List[TestResult]):
241244
print(f"\nTotal Tests: {total}")
242245
print(f"Passed: {passed} ✅")
243246
print(f"Failed: {failed} ❌")
244-
print(f"Success Rate: {(passed/total*100):.1f}%\n")
247+
print(f"Success Rate: {(passed / total * 100):.1f}%\n")
245248

246249
if failed > 0:
247250
print("Failed Tests:")

0 commit comments

Comments
 (0)