Skip to content

Commit 28ff247

Browse files
committed
Fix tests
1 parent e5609fd commit 28ff247

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/testing-integration.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
name: Reorg tests
88
runs-on: ubuntu-latest
99
env:
10-
PINECONE_DEBUG_CURL: 'true'
10+
PINECONE_DEBUG_CURL: 'false'
1111
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
1212
PINECONE_ADDITIONAL_HEADERS: '{"sdk-test-suite": "pinecone-python-client"}'
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python_version: [3.9, 3.12]
16+
python_version: [3.9]
1717
test_suite:
1818
- tests/integration/control/resources/index
1919
- tests/integration/control/resources/collections

tests/integration/control/resources/collections/conftest.py

-8
This file was deleted.

tests/integration/control_asyncio/resources/conftest.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import uuid
33
import logging
44
import dotenv
5-
from pinecone import Pinecone
5+
import os
6+
from pinecone import Pinecone, PodIndexEnvironment
67
from ...helpers import delete_indexes_from_run, delete_backups_from_run, default_create_index_params
78

89
dotenv.load_dotenv()
@@ -19,6 +20,11 @@ def pc():
1920
return Pinecone()
2021

2122

23+
@pytest.fixture
24+
def pod_environment():
25+
return os.getenv("POD_ENVIRONMENT", PodIndexEnvironment.US_EAST1_AWS.value)
26+
27+
2228
@pytest.fixture()
2329
def create_index_params(request):
2430
return default_create_index_params(request, RUN_ID)

0 commit comments

Comments
 (0)