11
11
from codex .types import (
12
12
ProjectListResponse ,
13
13
ProjectReturnSchema ,
14
+ ProjectRetrieveResponse ,
14
15
)
15
16
from tests .utils import assert_matches_type
16
17
@@ -85,7 +86,7 @@ def test_method_retrieve(self, client: Codex) -> None:
85
86
project = client .projects .retrieve (
86
87
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
87
88
)
88
- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
89
+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
89
90
90
91
@pytest .mark .skip ()
91
92
@parametrize
@@ -97,7 +98,7 @@ def test_raw_response_retrieve(self, client: Codex) -> None:
97
98
assert response .is_closed is True
98
99
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
99
100
project = response .parse ()
100
- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
101
+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
101
102
102
103
@pytest .mark .skip ()
103
104
@parametrize
@@ -109,7 +110,7 @@ def test_streaming_response_retrieve(self, client: Codex) -> None:
109
110
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
110
111
111
112
project = response .parse ()
112
- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
113
+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
113
114
114
115
assert cast (Any , response .is_closed ) is True
115
116
@@ -391,7 +392,7 @@ async def test_method_retrieve(self, async_client: AsyncCodex) -> None:
391
392
project = await async_client .projects .retrieve (
392
393
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
393
394
)
394
- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
395
+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
395
396
396
397
@pytest .mark .skip ()
397
398
@parametrize
@@ -403,7 +404,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncCodex) -> None:
403
404
assert response .is_closed is True
404
405
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
405
406
project = await response .parse ()
406
- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
407
+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
407
408
408
409
@pytest .mark .skip ()
409
410
@parametrize
@@ -415,7 +416,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncCodex) -> No
415
416
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
416
417
417
418
project = await response .parse ()
418
- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
419
+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
419
420
420
421
assert cast (Any , response .is_closed ) is True
421
422
0 commit comments