77
88import httpx
99
10+ from .tests import (
11+ TestsResource ,
12+ AsyncTestsResource ,
13+ TestsResourceWithRawResponse ,
14+ AsyncTestsResourceWithRawResponse ,
15+ TestsResourceWithStreamingResponse ,
16+ AsyncTestsResourceWithStreamingResponse ,
17+ )
1018from ...types import project_list_params , project_create_params
1119from .commits import (
1220 CommitsResource ,
@@ -53,6 +61,10 @@ def commits(self) -> CommitsResource:
5361 def inference_pipelines (self ) -> InferencePipelinesResource :
5462 return InferencePipelinesResource (self ._client )
5563
64+ @cached_property
65+ def tests (self ) -> TestsResource :
66+ return TestsResource (self ._client )
67+
5668 @cached_property
5769 def with_raw_response (self ) -> ProjectsResourceWithRawResponse :
5870 """
@@ -184,6 +196,10 @@ def commits(self) -> AsyncCommitsResource:
184196 def inference_pipelines (self ) -> AsyncInferencePipelinesResource :
185197 return AsyncInferencePipelinesResource (self ._client )
186198
199+ @cached_property
200+ def tests (self ) -> AsyncTestsResource :
201+ return AsyncTestsResource (self ._client )
202+
187203 @cached_property
188204 def with_raw_response (self ) -> AsyncProjectsResourceWithRawResponse :
189205 """
@@ -325,6 +341,10 @@ def commits(self) -> CommitsResourceWithRawResponse:
325341 def inference_pipelines (self ) -> InferencePipelinesResourceWithRawResponse :
326342 return InferencePipelinesResourceWithRawResponse (self ._projects .inference_pipelines )
327343
344+ @cached_property
345+ def tests (self ) -> TestsResourceWithRawResponse :
346+ return TestsResourceWithRawResponse (self ._projects .tests )
347+
328348
329349class AsyncProjectsResourceWithRawResponse :
330350 def __init__ (self , projects : AsyncProjectsResource ) -> None :
@@ -345,6 +365,10 @@ def commits(self) -> AsyncCommitsResourceWithRawResponse:
345365 def inference_pipelines (self ) -> AsyncInferencePipelinesResourceWithRawResponse :
346366 return AsyncInferencePipelinesResourceWithRawResponse (self ._projects .inference_pipelines )
347367
368+ @cached_property
369+ def tests (self ) -> AsyncTestsResourceWithRawResponse :
370+ return AsyncTestsResourceWithRawResponse (self ._projects .tests )
371+
348372
349373class ProjectsResourceWithStreamingResponse :
350374 def __init__ (self , projects : ProjectsResource ) -> None :
@@ -365,6 +389,10 @@ def commits(self) -> CommitsResourceWithStreamingResponse:
365389 def inference_pipelines (self ) -> InferencePipelinesResourceWithStreamingResponse :
366390 return InferencePipelinesResourceWithStreamingResponse (self ._projects .inference_pipelines )
367391
392+ @cached_property
393+ def tests (self ) -> TestsResourceWithStreamingResponse :
394+ return TestsResourceWithStreamingResponse (self ._projects .tests )
395+
368396
369397class AsyncProjectsResourceWithStreamingResponse :
370398 def __init__ (self , projects : AsyncProjectsResource ) -> None :
@@ -384,3 +412,7 @@ def commits(self) -> AsyncCommitsResourceWithStreamingResponse:
384412 @cached_property
385413 def inference_pipelines (self ) -> AsyncInferencePipelinesResourceWithStreamingResponse :
386414 return AsyncInferencePipelinesResourceWithStreamingResponse (self ._projects .inference_pipelines )
415+
416+ @cached_property
417+ def tests (self ) -> AsyncTestsResourceWithStreamingResponse :
418+ return AsyncTestsResourceWithStreamingResponse (self ._projects .tests )
0 commit comments