Skip to content

Commit 6a15127

Browse files
committed
fix(test): add truncate_len to expected schemas in collection tests
1 parent 957e18a commit 6a15127

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

tests/collection_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def test_actual_retrieve(
204204
"infix": False,
205205
"stem": False,
206206
"stem_dictionary": "",
207+
"truncate_len": 100,
207208
"store": True,
208209
},
209210
{
@@ -217,6 +218,7 @@ def test_actual_retrieve(
217218
"infix": False,
218219
"stem": False,
219220
"stem_dictionary": "",
221+
"truncate_len": 100,
220222
"store": True,
221223
},
222224
],
@@ -245,10 +247,7 @@ def test_actual_update(
245247

246248
expected: CollectionSchema = {
247249
"fields": [
248-
{
249-
"name": "num_locations",
250-
"type": "int32",
251-
},
250+
{"name": "num_locations", "truncate_len": 100, "type": "int32"},
252251
],
253252
}
254253

tests/collections_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def test_actual_create(actual_collections: Collections, delete_all: None) -> Non
203203
"infix": False,
204204
"stem": False,
205205
"stem_dictionary": "",
206+
"truncate_len": 100,
206207
"store": True,
207208
},
208209
{
@@ -216,6 +217,7 @@ def test_actual_create(actual_collections: Collections, delete_all: None) -> Non
216217
"infix": False,
217218
"stem": False,
218219
"stem_dictionary": "",
220+
"truncate_len": 100,
219221
"store": True,
220222
},
221223
],
@@ -273,6 +275,7 @@ def test_actual_retrieve(
273275
"infix": False,
274276
"stem": False,
275277
"stem_dictionary": "",
278+
"truncate_len": 100,
276279
"store": True,
277280
},
278281
{
@@ -286,6 +289,7 @@ def test_actual_retrieve(
286289
"infix": False,
287290
"stem": False,
288291
"stem_dictionary": "",
292+
"truncate_len": 100,
289293
"store": True,
290294
},
291295
],

0 commit comments

Comments
 (0)