Skip to content

Commit 022c7b1

Browse files
Apply suggestions from code review
Co-authored-by: Stephan Tulkens <stephantul@gmail.com>
1 parent a5ce987 commit 022c7b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_vicinity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,14 @@ def test_vicinity_delete_and_query(vicinity_instance: Vicinity, items: list[str]
289289
assert item not in vicinity_instance.items
290290

291291
# Query using a vector of an item that wasn't deleted
292-
existsing_item_index = 3
293-
item3_vector = vectors[existsing_item_index]
292+
existing_item_index = 3
293+
item3_vector = vectors[existing_item_index]
294294

295295
results = vicinity_instance.query(item3_vector, k=10)
296296
returned_items = [item for item, _ in results[0]]
297297

298298
# Check that the queried item is in the results
299-
assert items[existsing_item_index] in returned_items
299+
assert items[existing_item_index] in returned_items
300300

301301

302302
def test_vicinity_evaluate(vicinity_instance: Vicinity, vectors: np.ndarray) -> None:

0 commit comments

Comments
 (0)