1+ import os
12from typing import Literal
23
34import pytest
78
89
910class 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