From 7fc2038056be1c59b0238b40fa02b46a30c8999d Mon Sep 17 00:00:00 2001 From: Jen Hamon Date: Mon, 11 Nov 2024 09:09:00 -0500 Subject: [PATCH] Run int tests for rest only --- tests/integration/data/test_query_namespaces.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration/data/test_query_namespaces.py b/tests/integration/data/test_query_namespaces.py index 613de1d7..e52c58b0 100644 --- a/tests/integration/data/test_query_namespaces.py +++ b/tests/integration/data/test_query_namespaces.py @@ -1,4 +1,5 @@ import pytest +import os from ..helpers import random_string, poll_stats_for_namespace from pinecone.data.query_results_aggregator import ( QueryResultsAggregatorInvalidTopKError, @@ -8,7 +9,10 @@ from pinecone import Vector -class TestQueryNamespaces: +@pytest.mark.skipif( + os.getenv("USE_GRPC") == "true", reason="query_namespaces currently only available via rest" +) +class TestQueryNamespacesRest: def test_query_namespaces(self, idx): ns_prefix = random_string(5) ns1 = f"{ns_prefix}-ns1"