Add model_suffix argument to Qdrant tests

- Pass suffix to dimension tests
- Add explicit suffix to safety tests
- Test empty suffix scenario
- Update collection init calls
This commit is contained in:
yangdx
2025-12-21 02:16:47 +08:00
parent 77ed23a7ab
commit ff19a67feb
2 changed files with 4 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ class TestQdrantDimensionMismatch:
payload_m=16,
m=0,
),
model_suffix="model_3072d",
)
# Verify error message contains dimension information
@@ -159,6 +160,7 @@ class TestQdrantDimensionMismatch:
payload_m=16,
m=0,
),
model_suffix="model_1536d",
)
# Verify migration WAS attempted

View File

@@ -64,6 +64,7 @@ class TestNoModelSuffixSafety:
payload_m=16,
m=0,
),
model_suffix="", # Empty suffix to simulate no model_name provided
)
# CRITICAL: Collection should NOT be deleted
@@ -167,6 +168,7 @@ class TestNoModelSuffixSafety:
payload_m=16,
m=0,
),
model_suffix="ada_002_1536d",
)
# SHOULD delete legacy (normal Case 1 behavior)