Skip to content

Commit 18bbfc7

Browse files
committed
refactor: remove unused fixtures from FTS conftest
Remove unused index_name, serverless_cloud, and serverless_region fixtures that were flagged by Bugbot review.
1 parent 0495a20 commit 18bbfc7

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

tests/integration/rest_sync/db/control/fts/conftest.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
import dotenv
77
from pinecone import Pinecone
8-
from tests.integration.helpers import delete_indexes_from_run, index_tags, get_environment_var
8+
from tests.integration.helpers import delete_indexes_from_run, index_tags
99

1010
dotenv.load_dotenv()
1111

@@ -21,12 +21,6 @@ def pc():
2121
return Pinecone()
2222

2323

24-
@pytest.fixture()
25-
def index_name():
26-
"""Generate a unique index name for each test."""
27-
return f"{str(uuid.uuid4())}"
28-
29-
3024
@pytest.fixture()
3125
def index_name_and_tags(request):
3226
"""Generate a unique index name and tags for each test."""
@@ -35,18 +29,6 @@ def index_name_and_tags(request):
3529
return name, tags
3630

3731

38-
@pytest.fixture()
39-
def serverless_cloud():
40-
"""Get the serverless cloud provider."""
41-
return get_environment_var("SERVERLESS_CLOUD", "aws")
42-
43-
44-
@pytest.fixture()
45-
def serverless_region():
46-
"""Get the serverless region."""
47-
return get_environment_var("SERVERLESS_REGION", "us-east-1")
48-
49-
5032
def pytest_sessionfinish(session, exitstatus):
5133
"""Clean up indexes created during the test session."""
5234
logger.info("Running final cleanup after FTS control plane tests...")

0 commit comments

Comments
 (0)