Skip to content

Commit

Permalink
Fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkkul committed Aug 20, 2024
1 parent 79b8839 commit 85a602a
Showing 1 changed file with 36 additions and 14 deletions.
50 changes: 36 additions & 14 deletions integration/test_collection_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
Vectorizers,
GenerativeSearches,
Rerankers,
_RerankerConfigCreate, Tokenization, )
_RerankerConfigCreate,
Tokenization,
)
from weaviate.collections.classes.tenants import Tenant
from weaviate.exceptions import UnexpectedStatusCodeError, WeaviateInvalidInputError

Expand Down Expand Up @@ -801,13 +803,21 @@ def test_config_export_and_recreate_from_dict(collection_factory: CollectionFact
"reranker-cohere", module_config={"model": "rerank-english-v2.0"}
),
properties=[
Property(name="field_tokenization", data_type=DataType.TEXT, tokenization=Tokenization.FIELD),
Property(name="field_description", data_type=DataType.TEXT,
tokenization=Tokenization.FIELD, description="field desc"),
Property(name="field_index_filterable", data_type=DataType.TEXT,
index_filterable=False),
Property(name="field_skip_vectorization", data_type=DataType.TEXT,
skip_vectorization=True),
Property(
name="field_tokenization", data_type=DataType.TEXT, tokenization=Tokenization.FIELD
),
Property(
name="field_description",
data_type=DataType.TEXT,
tokenization=Tokenization.FIELD,
description="field desc",
),
Property(
name="field_index_filterable", data_type=DataType.TEXT, index_filterable=False
),
Property(
name="field_skip_vectorization", data_type=DataType.TEXT, skip_vectorization=True
),
Property(name="text", data_type=DataType.TEXT),
Property(name="texts", data_type=DataType.TEXT_ARRAY),
Property(name="number", data_type=DataType.NUMBER),
Expand All @@ -820,12 +830,24 @@ def test_config_export_and_recreate_from_dict(collection_factory: CollectionFact
Property(name="booleans", data_type=DataType.BOOL_ARRAY),
Property(name="geo", data_type=DataType.GEO_COORDINATES),
Property(name="phone", data_type=DataType.PHONE_NUMBER),
Property(name="field_index_searchable", data_type=DataType.TEXT,
index_searchable=False),
Property(name="field_index_range_filters_false", data_type=DataType.INT, index_range_filters=False),
Property(name="field_index_range_filters_true", data_type=DataType.INT, index_range_filters=True),
Property(name="field_skip_vectorization_false", data_type=DataType.TEXT,
vectorize_property_name=False),
Property(
name="field_index_searchable", data_type=DataType.TEXT, index_searchable=False
),
Property(
name="field_index_range_filters_false",
data_type=DataType.INT,
index_range_filters=False,
),
Property(
name="field_index_range_filters_true",
data_type=DataType.INT,
index_range_filters=True,
),
Property(
name="field_skip_vectorization_false",
data_type=DataType.TEXT,
vectorize_property_name=False,
),
Property(
name="nested",
data_type=DataType.OBJECT,
Expand Down

0 comments on commit 85a602a

Please sign in to comment.