Commit f75c418
fix: repair pre-existing e2e test failures
Bump pymilvus from 2.4.4 to 2.5.4 in test requirements — the old
version depended on milvus-lite<2.5.0, causing pip to downgrade the
freshly built 2.5.2 wheel to 2.4.12 from PyPI so tests never ran
against the CI-built code.
Guard the `from pymilvus import Milvus` import in util_pymilvus.py
with try/except — the legacy Milvus class was removed in pymilvus 2.5
and its top-level import crashed conftest.py before any test could run.
Fix test_milvus_client_collection_self_creation_default:
- DataType.Array → DataType.ARRAY (enum naming)
- metric_type "cosine" → "COSINE" (case-sensitive in C++)
- Correct check_items to match schema field names (id_string,
embeddings) and enable_dynamic_field=False
- Fix list_indexes assertion to match actual field name
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 9a37dde commit f75c418
3 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
318 | | - | |
| 321 | + | |
319 | 322 | | |
320 | 323 | | |
321 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
0 commit comments