def test_track_total_hits_validation(self):
        """Test that trackTotalHits is only allowed for hybrid search."""
        # Should fail for tensor search
        with self.assertRaises(ValidationError) as cm:
            SearchQuery(
                q="test",
                searchMethod=SearchMethod.TENSOR,
                trackTotalHits=True
            )
        self.assertIn("trackTotalHits can only be provided for 'HYBRID' search", str(cm.exception))
Test that trackTotalHits is only allowed for hybrid search.
tests/unit_tests/marqo/tensor_search/test_api_models.py