diff --git a/tests/integration/control/serverless/test_create_index_api_errors.py b/tests/integration/control/serverless/test_create_index_api_errors.py index 89ae9794..32bde3c4 100644 --- a/tests/integration/control/serverless/test_create_index_api_errors.py +++ b/tests/integration/control/serverless/test_create_index_api_errors.py @@ -3,7 +3,7 @@ class TestCreateIndexApiErrorCases: def test_create_index_with_invalid_name(self, client, create_sl_index_params): - create_sl_index_params['name'] = '-invalid-name' + create_sl_index_params['name'] = 'Invalid-name' with pytest.raises(PineconeApiException): client.create_index(**create_sl_index_params) diff --git a/tests/unit/models/test_collection_list.py b/tests/unit/models/test_collection_list.py index fea78f2b..8c34d368 100644 --- a/tests/unit/models/test_collection_list.py +++ b/tests/unit/models/test_collection_list.py @@ -6,8 +6,8 @@ def collection_list_response(): return OpenApiCollectionList( collections=[ - CollectionModel(name='collection1', size=10000, status='Ready', dimension=1536, record_count=1000), - CollectionModel(name='collection2', size=20000, status='Ready', dimension=256, record_count=2000), + CollectionModel(name='collection1', size=10000, status='Ready', dimension=1536, record_count=1000, environment='us-west1-gcp'), + CollectionModel(name='collection2', size=20000, status='Ready', dimension=256, record_count=2000, environment='us-west1-gcp'), ], )