Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Feb 9, 2024
1 parent 8f17fbb commit c941495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/models/test_collection_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
],
)

Expand Down

0 comments on commit c941495

Please sign in to comment.