Skip to content

Commit

Permalink
Fix unit tests errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex committed Mar 26, 2024
1 parent 07452d3 commit c144c96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/tensor_search/integ_tests/test_search_unstructured.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from unittest import mock

import requests
from pydantic import ValidationError

import marqo.core.exceptions as core_exceptions
from marqo.api import exceptions as errors
Expand Down Expand Up @@ -1080,7 +1081,7 @@ def test_multi_search_images_invalid_queries(self):
{"https://marqo_not_real.com/image_1.png": 3}, set()]
for q in invalid_queries:
with self.subTest(f"query={q}"):
with self.assertRaises(errors.InvalidArgError):
with self.assertRaises((ValidationError, errors.InvalidArgError)) as e:
tensor_search.search(
text=q,
index_name=self.default_image_index,
Expand Down

0 comments on commit c144c96

Please sign in to comment.