def test_no_model_and_context_vectors_dimension(self):
        """Test to ensure no_model still raises error if context vector dimension is incorrect."""
        for index_name in [self.structured_index_with_no_model, self.unstructured_index_with_no_model]:
            with (self.subTest(index_name=index_name)):
                with self.assertRaises(InvalidArgError) as e:
                    r = tensor_search.search(config=self.config, index_name=index_name, text=None,
                                             context=SearchContext(**{"tensor": [{"vector": [1, ] * (self.DIMENSION + 1),
                                                                                  "weight": -1},
                                                                                 {"vector": [1, ] * (self.DIMENSION + 1),
                                                                                  "weight": 1}], }))
                self.assertIn("does not match the expected dimension", str(e.exception.message))
Test to ensure no_model still raises error if context vector dimension is incorrect.
tests/integ_tests/tensor_search/integ_tests/test_no_model.py