Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Byczong committed Jan 24, 2025
1 parent 215d359 commit 00d3444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collection_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class GetCollectionByIdRequest(BaseCollectionRequest):

class SuggestionFromCollection(BaseModel):
name: str = Field(title="label from a collection") # todo: change to label
tokenized_label: list[str] = Field(title="original tokenization of label")
tokenized_label: list[str] = Field(title="suggested tokenization of label")
metadata: Optional[Metadata] = Field(None, title="information how suggestion was generated",
description="if metadata=False this key is absent")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_collections_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def test_fetch_collection_members_pagination(self, test_test_client):
response_json = response.json()

assert len(response_json['suggestions']) == 10
assert response_json['type'] == 'related'
# assert response_json['type'] == 'related' # we removed this field
assert response_json['collection_id'] == 'ri2QqxnAqZT7'

# Test fetching second page
Expand Down

0 comments on commit 00d3444

Please sign in to comment.