Skip to content

Commit 70ec792

Browse files
committed
Fix tests to support new worker postfixes
1 parent b2aaeec commit 70ec792

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/integration/test_async_search_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_search_index_properties(index_schema, async_index):
6969
def test_search_index_from_yaml(async_index_from_yaml):
7070
assert async_index_from_yaml.name.startswith("json-test")
7171
assert async_index_from_yaml.client is None
72-
assert async_index_from_yaml.prefix == "json"
72+
assert async_index_from_yaml.prefix.startswith("json_")
7373
assert async_index_from_yaml.key_separator == ":"
7474
assert async_index_from_yaml.storage_type == StorageType.JSON
7575
assert async_index_from_yaml.key("foo").startswith(async_index_from_yaml.prefix)
@@ -78,7 +78,7 @@ def test_search_index_from_yaml(async_index_from_yaml):
7878
def test_search_index_from_dict(async_index_from_dict):
7979
assert async_index_from_dict.name.startswith("my_index")
8080
assert async_index_from_dict.client is None
81-
assert async_index_from_dict.prefix == "rvl"
81+
assert async_index_from_dict.prefix.startswith("rvl_")
8282
assert async_index_from_dict.key_separator == ":"
8383
assert async_index_from_dict.storage_type == StorageType.HASH
8484
assert len(async_index_from_dict.schema.fields) == len(fields)

tests/integration/test_search_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_search_index_properties(index_schema, index):
7777
def test_search_index_from_yaml(index_from_yaml):
7878
assert index_from_yaml.name.startswith("json-test")
7979
assert index_from_yaml.client == None
80-
assert index_from_yaml.prefix == "json"
80+
assert index_from_yaml.prefix.startswith("json_")
8181
assert index_from_yaml.key_separator == ":"
8282
assert index_from_yaml.storage_type == StorageType.JSON
8383
assert index_from_yaml.key("foo").startswith(index_from_yaml.prefix)
@@ -86,7 +86,7 @@ def test_search_index_from_yaml(index_from_yaml):
8686
def test_search_index_from_dict(index_from_dict):
8787
assert index_from_dict.name.startswith("my_index")
8888
assert index_from_dict.client == None
89-
assert index_from_dict.prefix == "rvl"
89+
assert index_from_dict.prefix.startswith("rvl_")
9090
assert index_from_dict.key_separator == ":"
9191
assert index_from_dict.storage_type == StorageType.HASH
9292
assert len(index_from_dict.schema.fields) == len(fields)

0 commit comments

Comments
 (0)