Skip to content

Commit efc66c1

Browse files
committed
fix: Fixed some test suite bugs
1 parent 3ea35e1 commit efc66c1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/unit/api/test_api_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class DummySearchEngine:
11-
def search(self, _query, limit=5, expand_deps=True):
11+
def search(self, query, limit=5, expand_deps=True, **_kwargs):
1212
return [CodeChunk(id="c1", entity_id="e1", content="hi", tokens=["hi"])]
1313

1414

tests/unit/storage/test_vector_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def test_vector_store_save_load(tmp_path) -> None:
1818
path = tmp_path / "vectors"
1919
store.save(path)
2020

21-
loaded = VectorStore(dimension=2, index_path=path)
21+
loaded = VectorStore(dimension=2)
22+
loaded.load(path)
2223
assert loaded.id_map
2324
results = loaded.search([1.0, 0.0], limit=1)
2425
assert results[0][0] == "c1"

0 commit comments

Comments
 (0)