Skip to content

Commit f5f99ba

Browse files
committed
fix
1 parent aa9eead commit f5f99ba

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

langchain/tests/test_langchain_integration_tests.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from typing import Literal
23

34
import pytest
@@ -7,6 +8,11 @@
78

89

910
class TestVectorizeRetrieverIntegration(RetrieversIntegrationTests):
11+
_environment: Literal["prod", "dev", "local", "staging"]
12+
_api_token: str
13+
_org_id: str
14+
_pipeline_id: str
15+
1016
@classmethod
1117
@pytest.fixture(autouse=True, scope="class")
1218
def setup(
@@ -16,10 +22,10 @@ def setup(
1622
org_id: str,
1723
pipeline_id: str,
1824
) -> None:
19-
cls.environment = environment
20-
cls.api_token = api_token
21-
cls.org_id = org_id
22-
cls.pipeline_id = pipeline_id
25+
cls._environment = environment
26+
cls._api_token = api_token
27+
cls._org_id = org_id
28+
cls._pipeline_id = pipeline_id
2329

2430
@property
2531
def retriever_constructor(self) -> type[VectorizeRetriever]:
@@ -28,10 +34,10 @@ def retriever_constructor(self) -> type[VectorizeRetriever]:
2834
@property
2935
def retriever_constructor_params(self) -> dict:
3036
return {
31-
"environment": self.environment,
32-
"api_token": self.api_token,
33-
"organization": self.org_id,
34-
"pipeline_id": self.pipeline_id,
37+
"environment": self._environment,
38+
"api_token": self._api_token,
39+
"organization": self._org_id,
40+
"pipeline_id": self._pipeline_id,
3541
}
3642

3743
@property

0 commit comments

Comments
 (0)