11# Copyright © 2026 Pathway
22
33import json
4+ import uuid
45
56import pytest
67
@@ -15,6 +16,10 @@ def make_list(vector_as_str: str) -> list[float]:
1516 return [float (x ) for x in vector_as_str .split ("," )]
1617
1718
19+ def unique_table_name_suffix () -> str :
20+ return str (uuid .uuid4 ()).replace ("-" , "" )
21+
22+
1823class InputSchema (pw .Schema ):
1924 pk_source : int = pw .column_definition (primary_key = True )
2025 data : str
@@ -48,7 +53,7 @@ def test_basic_search():
4853
4954 index_factory = ExternalIndexFactory .qdrant_factory (
5055 url = QDRANT_URL ,
51- collection_name = "test_basic " ,
56+ collection_name = f"test_basic_ { unique_table_name_suffix () } " ,
5257 vector_size = 3 ,
5358 )
5459
@@ -98,7 +103,7 @@ def test_with_deletions():
98103
99104 index_factory = ExternalIndexFactory .qdrant_factory (
100105 url = QDRANT_URL ,
101- collection_name = "test_deletions " ,
106+ collection_name = f"test_deletions_ { unique_table_name_suffix () } " ,
102107 vector_size = 3 ,
103108 )
104109
@@ -161,7 +166,7 @@ class QuerySchemaWithFilter(pw.Schema):
161166
162167 index_factory = ExternalIndexFactory .qdrant_factory (
163168 url = QDRANT_URL ,
164- collection_name = "test_filter " ,
169+ collection_name = f"test_filter_ { unique_table_name_suffix () } " ,
165170 vector_size = 3 ,
166171 )
167172
0 commit comments