diff --git a/tests/integration/control/serverless/test_index_instantiation_ux.py b/tests/integration/control/serverless/test_index_instantiation_ux.py new file mode 100644 index 00000000..12722267 --- /dev/null +++ b/tests/integration/control/serverless/test_index_instantiation_ux.py @@ -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." + )