Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Nov 15, 2024
1 parent 720b9a9 commit 8b6d97d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pinecone
import pytest


class TestIndexInstantiationUX:
def test_index_instantiation_ux(self):
with pytest.raises(Exception) as e:
pinecone.Index(name="my-index", host="host")

assert (
str(e.value)
== "You are attempting to access the Index client directly from the pinecone module."
)

0 comments on commit 8b6d97d

Please sign in to comment.