Skip to content

Commit 0100e7b

Browse files
committed
Fix tests
1 parent 28ff247 commit 0100e7b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/integration/control/resources/conftest.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import os
12
import pytest
23
import uuid
34
import logging
45
import dotenv
5-
from pinecone import Pinecone
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()
@@ -34,6 +35,11 @@ def index_tags(create_index_params):
3435
return create_index_params["tags"]
3536

3637

38+
@pytest.fixture
39+
def pod_environment():
40+
return os.getenv("POD_ENVIRONMENT", PodIndexEnvironment.US_EAST1_AWS.value)
41+
42+
3743
@pytest.fixture()
3844
def ready_sl_index(pc, index_name, create_index_params):
3945
create_index_params["timeout"] = None

0 commit comments

Comments
 (0)