From 8b6d97d261e4b98b8946882bb3cdeac36907046a Mon Sep 17 00:00:00 2001 From: Jen Hamon Date: Fri, 15 Nov 2024 15:12:32 -0500 Subject: [PATCH] Add integration test --- .../serverless/test_index_instantiation_ux.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/integration/control/serverless/test_index_instantiation_ux.py 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." + )