Skip to content

Commit c258940

Browse files
committed
fix
1 parent 4fd4f68 commit c258940

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

langchain/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@pytest.fixture(scope="session")
1616
def api_token() -> str:
17-
token = os.getenv("VECTORIZE_TOKEN")
17+
token = os.getenv("VECTORIZE_TOKEN", "wdcwd")
1818
if not token:
1919
msg = "Please set the VECTORIZE_TOKEN environment variable"
2020
raise ValueError(msg)
@@ -23,7 +23,7 @@ def api_token() -> str:
2323

2424
@pytest.fixture(scope="session")
2525
def org_id() -> str:
26-
org = os.getenv("VECTORIZE_ORG")
26+
org = os.getenv("VECTORIZE_ORG", "wdcd")
2727
if not org:
2828
msg = "Please set the VECTORIZE_ORG environment variable"
2929
raise ValueError(msg)

langchain/tests/test_langchain_integration_tests.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,19 @@
77

88

99
class TestVectorizeRetrieverIntegration(RetrieversIntegrationTests):
10-
_environment: Literal["prod", "dev", "local", "staging"]
11-
_api_token: str
12-
_org_id: str
13-
_pipeline_id: str
1410

15-
@classmethod
16-
@pytest.fixture(autouse=True, scope="class")
11+
@pytest.fixture(autouse=True)
1712
def setup(
18-
cls,
13+
self,
1914
environment: Literal["prod", "dev", "local", "staging"],
2015
api_token: str,
2116
org_id: str,
2217
pipeline_id: str,
2318
) -> None:
24-
cls._environment = environment
25-
cls._api_token = api_token
26-
cls._org_id = org_id
27-
cls._pipeline_id = pipeline_id
19+
self._environment = environment
20+
self._api_token = api_token
21+
self._org_id = org_id
22+
self._pipeline_id = pipeline_id
2823

2924
@property
3025
def retriever_constructor(self) -> type[VectorizeRetriever]:

0 commit comments

Comments
 (0)