1111from codex .types import (
1212 ProjectListResponse ,
1313 ProjectReturnSchema ,
14+ ProjectRetrieveResponse ,
1415)
1516from tests .utils import assert_matches_type
1617
@@ -85,7 +86,7 @@ def test_method_retrieve(self, client: Codex) -> None:
8586 project = client .projects .retrieve (
8687 "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
8788 )
88- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
89+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
8990
9091 @pytest .mark .skip ()
9192 @parametrize
@@ -97,7 +98,7 @@ def test_raw_response_retrieve(self, client: Codex) -> None:
9798 assert response .is_closed is True
9899 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
99100 project = response .parse ()
100- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
101+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
101102
102103 @pytest .mark .skip ()
103104 @parametrize
@@ -109,7 +110,7 @@ def test_streaming_response_retrieve(self, client: Codex) -> None:
109110 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
110111
111112 project = response .parse ()
112- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
113+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
113114
114115 assert cast (Any , response .is_closed ) is True
115116
@@ -391,7 +392,7 @@ async def test_method_retrieve(self, async_client: AsyncCodex) -> None:
391392 project = await async_client .projects .retrieve (
392393 "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
393394 )
394- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
395+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
395396
396397 @pytest .mark .skip ()
397398 @parametrize
@@ -403,7 +404,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncCodex) -> None:
403404 assert response .is_closed is True
404405 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
405406 project = await response .parse ()
406- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
407+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
407408
408409 @pytest .mark .skip ()
409410 @parametrize
@@ -415,7 +416,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncCodex) -> No
415416 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
416417
417418 project = await response .parse ()
418- assert_matches_type (ProjectReturnSchema , project , path = ["response" ])
419+ assert_matches_type (ProjectRetrieveResponse , project , path = ["response" ])
419420
420421 assert cast (Any , response .is_closed ) is True
421422
0 commit comments