Skip to content

Commit bb49637

Browse files
committed
Add tests in CI
1 parent 1f1b14f commit bb49637

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

langchain/tests/test_retrievers.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@
77

88
import pytest
99
import vectorize_client as v
10+
from vectorize_client import ApiClient
1011

1112
from langchain_vectorize.retrievers import VectorizeRetriever
1213

1314

14-
@dataclass
15-
class TestContext:
16-
api_client: v.ApiClient
17-
api_token: str
18-
org_id: str
19-
20-
2115
@pytest.fixture(scope="session")
2216
def api_token() -> str:
2317
token = os.getenv("VECTORIZE_TOKEN")
@@ -37,7 +31,7 @@ def org_id() -> str:
3731

3832

3933
@pytest.fixture(scope="session")
40-
def api_client(api_token: str) -> Iterator[TestContext]:
34+
def api_client(api_token: str) -> Iterator[ApiClient]:
4135
env = os.getenv("VECTORIZE_ENV", "prod")
4236
header_name = None
4337
header_value = None

0 commit comments

Comments
 (0)