1313from codex .types .projects import (
1414 AccessKeySchema ,
1515 AccessKeyListResponse ,
16+ AccessKeyRetrieveProjectIDResponse ,
1617)
1718
1819base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
@@ -297,7 +298,7 @@ def test_path_params_delete(self, client: Codex) -> None:
297298 @parametrize
298299 def test_method_retrieve_project_id (self , client : Codex ) -> None :
299300 access_key = client .projects .access_keys .retrieve_project_id ()
300- assert_matches_type (str , access_key , path = ["response" ])
301+ assert_matches_type (AccessKeyRetrieveProjectIDResponse , access_key , path = ["response" ])
301302
302303 @pytest .mark .skip ()
303304 @parametrize
@@ -307,7 +308,7 @@ def test_raw_response_retrieve_project_id(self, client: Codex) -> None:
307308 assert response .is_closed is True
308309 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
309310 access_key = response .parse ()
310- assert_matches_type (str , access_key , path = ["response" ])
311+ assert_matches_type (AccessKeyRetrieveProjectIDResponse , access_key , path = ["response" ])
311312
312313 @pytest .mark .skip ()
313314 @parametrize
@@ -317,7 +318,7 @@ def test_streaming_response_retrieve_project_id(self, client: Codex) -> None:
317318 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
318319
319320 access_key = response .parse ()
320- assert_matches_type (str , access_key , path = ["response" ])
321+ assert_matches_type (AccessKeyRetrieveProjectIDResponse , access_key , path = ["response" ])
321322
322323 assert cast (Any , response .is_closed ) is True
323324
@@ -653,7 +654,7 @@ async def test_path_params_delete(self, async_client: AsyncCodex) -> None:
653654 @parametrize
654655 async def test_method_retrieve_project_id (self , async_client : AsyncCodex ) -> None :
655656 access_key = await async_client .projects .access_keys .retrieve_project_id ()
656- assert_matches_type (str , access_key , path = ["response" ])
657+ assert_matches_type (AccessKeyRetrieveProjectIDResponse , access_key , path = ["response" ])
657658
658659 @pytest .mark .skip ()
659660 @parametrize
@@ -663,7 +664,7 @@ async def test_raw_response_retrieve_project_id(self, async_client: AsyncCodex)
663664 assert response .is_closed is True
664665 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
665666 access_key = await response .parse ()
666- assert_matches_type (str , access_key , path = ["response" ])
667+ assert_matches_type (AccessKeyRetrieveProjectIDResponse , access_key , path = ["response" ])
667668
668669 @pytest .mark .skip ()
669670 @parametrize
@@ -673,7 +674,7 @@ async def test_streaming_response_retrieve_project_id(self, async_client: AsyncC
673674 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
674675
675676 access_key = await response .parse ()
676- assert_matches_type (str , access_key , path = ["response" ])
677+ assert_matches_type (AccessKeyRetrieveProjectIDResponse , access_key , path = ["response" ])
677678
678679 assert cast (Any , response .is_closed ) is True
679680
0 commit comments