Skip to content

Commit ca61546

Browse files
committed
remove text assertions
1 parent 10579f9 commit ca61546

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

sdk/cosmos/azure-cosmos/tests/test_full_text_policy.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ def test_fail_create_full_text_indexing_policy(self):
300300
# pytest.fail("Container creation should have failed for lack of embedding policy.")
301301
except exceptions.CosmosHttpResponseError as e:
302302
assert e.status_code == 400
303-
assert re.search(
304-
r"the path of the full.text index.*does not match the path specified in the full.text policy",
305-
e.http_error_message, re.IGNORECASE)
306303

307304
# Pass a full text indexing policy with a wrongly formatted path
308305
indexing_policy_wrong_path = {
@@ -320,9 +317,6 @@ def test_fail_create_full_text_indexing_policy(self):
320317
pytest.fail("Container creation should have failed for invalid path.")
321318
except exceptions.CosmosHttpResponseError as e:
322319
assert e.status_code == 400
323-
assert re.search(
324-
r"full.text index specification at index \(0\) contains invalid path",
325-
e.http_error_message, re.IGNORECASE)
326320

327321
# Pass a full text indexing policy without a path field
328322
indexing_policy_no_path = {
@@ -340,9 +334,6 @@ def test_fail_create_full_text_indexing_policy(self):
340334
pytest.fail("Container creation should have failed for missing path.")
341335
except exceptions.CosmosHttpResponseError as e:
342336
assert e.status_code == 400
343-
assert re.search(
344-
r"missing path in full.text index specification at index \(0\)",
345-
e.http_error_message, re.IGNORECASE)
346337

347338
# Skipped until testing pipeline is set up for full text multi-language support
348339
@pytest.mark.skip

sdk/cosmos/azure-cosmos/tests/test_full_text_policy_async.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ async def test_fail_create_full_text_indexing_policy_async(self):
306306
# pytest.fail("Container creation should have failed for lack of embedding policy.")
307307
except exceptions.CosmosHttpResponseError as e:
308308
assert e.status_code == 400
309-
assert re.search(
310-
r"the path of the full.text index.*does not match the path specified in the full.text policy",
311-
e.http_error_message, re.IGNORECASE)
312309

313310
# Pass a full text indexing policy with a wrongly formatted path
314311
indexing_policy_wrong_path = {
@@ -326,9 +323,6 @@ async def test_fail_create_full_text_indexing_policy_async(self):
326323
pytest.fail("Container creation should have failed for invalid path.")
327324
except exceptions.CosmosHttpResponseError as e:
328325
assert e.status_code == 400
329-
assert re.search(
330-
r"full.text index specification at index \(0\) contains invalid path",
331-
e.http_error_message, re.IGNORECASE)
332326

333327
# Pass a full text indexing policy without a path field
334328
indexing_policy_no_path = {
@@ -346,9 +340,6 @@ async def test_fail_create_full_text_indexing_policy_async(self):
346340
pytest.fail("Container creation should have failed for missing path.")
347341
except exceptions.CosmosHttpResponseError as e:
348342
assert e.status_code == 400
349-
assert re.search(
350-
r"missing path in full.text index specification at index \(0\)",
351-
e.http_error_message, re.IGNORECASE)
352343

353344
# Skipped until testing pipeline is set up for full text multi-language support
354345
@pytest.mark.skip

0 commit comments

Comments
 (0)