7
7
8
8
import httpx
9
9
10
+ from .tests import (
11
+ TestsResource ,
12
+ AsyncTestsResource ,
13
+ TestsResourceWithRawResponse ,
14
+ AsyncTestsResourceWithRawResponse ,
15
+ TestsResourceWithStreamingResponse ,
16
+ AsyncTestsResourceWithStreamingResponse ,
17
+ )
10
18
from ...types import project_list_params , project_create_params
11
19
from .commits import (
12
20
CommitsResource ,
@@ -53,6 +61,10 @@ def commits(self) -> CommitsResource:
53
61
def inference_pipelines (self ) -> InferencePipelinesResource :
54
62
return InferencePipelinesResource (self ._client )
55
63
64
+ @cached_property
65
+ def tests (self ) -> TestsResource :
66
+ return TestsResource (self ._client )
67
+
56
68
@cached_property
57
69
def with_raw_response (self ) -> ProjectsResourceWithRawResponse :
58
70
"""
@@ -184,6 +196,10 @@ def commits(self) -> AsyncCommitsResource:
184
196
def inference_pipelines (self ) -> AsyncInferencePipelinesResource :
185
197
return AsyncInferencePipelinesResource (self ._client )
186
198
199
+ @cached_property
200
+ def tests (self ) -> AsyncTestsResource :
201
+ return AsyncTestsResource (self ._client )
202
+
187
203
@cached_property
188
204
def with_raw_response (self ) -> AsyncProjectsResourceWithRawResponse :
189
205
"""
@@ -325,6 +341,10 @@ def commits(self) -> CommitsResourceWithRawResponse:
325
341
def inference_pipelines (self ) -> InferencePipelinesResourceWithRawResponse :
326
342
return InferencePipelinesResourceWithRawResponse (self ._projects .inference_pipelines )
327
343
344
+ @cached_property
345
+ def tests (self ) -> TestsResourceWithRawResponse :
346
+ return TestsResourceWithRawResponse (self ._projects .tests )
347
+
328
348
329
349
class AsyncProjectsResourceWithRawResponse :
330
350
def __init__ (self , projects : AsyncProjectsResource ) -> None :
@@ -345,6 +365,10 @@ def commits(self) -> AsyncCommitsResourceWithRawResponse:
345
365
def inference_pipelines (self ) -> AsyncInferencePipelinesResourceWithRawResponse :
346
366
return AsyncInferencePipelinesResourceWithRawResponse (self ._projects .inference_pipelines )
347
367
368
+ @cached_property
369
+ def tests (self ) -> AsyncTestsResourceWithRawResponse :
370
+ return AsyncTestsResourceWithRawResponse (self ._projects .tests )
371
+
348
372
349
373
class ProjectsResourceWithStreamingResponse :
350
374
def __init__ (self , projects : ProjectsResource ) -> None :
@@ -365,6 +389,10 @@ def commits(self) -> CommitsResourceWithStreamingResponse:
365
389
def inference_pipelines (self ) -> InferencePipelinesResourceWithStreamingResponse :
366
390
return InferencePipelinesResourceWithStreamingResponse (self ._projects .inference_pipelines )
367
391
392
+ @cached_property
393
+ def tests (self ) -> TestsResourceWithStreamingResponse :
394
+ return TestsResourceWithStreamingResponse (self ._projects .tests )
395
+
368
396
369
397
class AsyncProjectsResourceWithStreamingResponse :
370
398
def __init__ (self , projects : AsyncProjectsResource ) -> None :
@@ -384,3 +412,7 @@ def commits(self) -> AsyncCommitsResourceWithStreamingResponse:
384
412
@cached_property
385
413
def inference_pipelines (self ) -> AsyncInferencePipelinesResourceWithStreamingResponse :
386
414
return AsyncInferencePipelinesResourceWithStreamingResponse (self ._projects .inference_pipelines )
415
+
416
+ @cached_property
417
+ def tests (self ) -> AsyncTestsResourceWithStreamingResponse :
418
+ return AsyncTestsResourceWithStreamingResponse (self ._projects .tests )
0 commit comments