Skip to content

Commit

Permalink
Fix tests broken by rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Nov 15, 2024
1 parent 28695f3 commit 67b69b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest

import pinecone
from pinecone import Index
from pinecone.data import _Index
from pinecone import UpsertRequest, Vector
from pinecone import (
DescribeIndexStatsRequest,
Expand Down Expand Up @@ -31,7 +31,7 @@ def setup_method(self):
self.svv2 = [0.1, 0.2, 0.3]
self.sv2 = {"indices": self.svi2, "values": self.svv2}

self.index = Index(api_key="asdf", host="https://test.pinecone.io")
self.index = _Index(api_key="asdf", host="https://test.pinecone.io")

# region: upsert tests

Expand Down Expand Up @@ -129,7 +129,7 @@ def test_upsert_parallelUpsert_callUpsertParallel(self, mocker):
[Vector(id="vec1", values=self.vals1, metadata=self.md1)],
[Vector(id="vec2", values=self.vals2, metadata=self.md2)],
]
with Index(api_key="asdf", host="https://test.pinecone.io", pool_threads=30) as index:
with _Index(api_key="asdf", host="https://test.pinecone.io", pool_threads=30) as index:
mocker.patch.object(index._vector_api, "upsert_vectors", autospec=True)

# Send requests in parallel
Expand Down

0 comments on commit 67b69b9

Please sign in to comment.