We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1b14f commit bb49637Copy full SHA for bb49637
langchain/tests/test_retrievers.py
@@ -7,17 +7,11 @@
7
8
import pytest
9
import vectorize_client as v
10
+from vectorize_client import ApiClient
11
12
from langchain_vectorize.retrievers import VectorizeRetriever
13
14
-@dataclass
15
-class TestContext:
16
- api_client: v.ApiClient
17
- api_token: str
18
- org_id: str
19
-
20
21
@pytest.fixture(scope="session")
22
def api_token() -> str:
23
token = os.getenv("VECTORIZE_TOKEN")
@@ -37,7 +31,7 @@ def org_id() -> str:
37
31
38
32
39
33
40
-def api_client(api_token: str) -> Iterator[TestContext]:
34
+def api_client(api_token: str) -> Iterator[ApiClient]:
41
35
env = os.getenv("VECTORIZE_ENV", "prod")
42
36
header_name = None
43
header_value = None
0 commit comments