99
1010from tests .utils import assert_matches_type
1111from runloop_api_client import Runloop , AsyncRunloop
12- from runloop_api_client .types import BenchmarkRunView
13- from runloop_api_client .types .benchmarks import RunListResponse
12+ from runloop_api_client .types import BenchmarkRunView , BenchmarkRunListView
1413
1514base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
1615
@@ -59,15 +58,15 @@ def test_path_params_retrieve(self, client: Runloop) -> None:
5958 @parametrize
6059 def test_method_list (self , client : Runloop ) -> None :
6160 run = client .benchmarks .runs .list ()
62- assert_matches_type (RunListResponse , run , path = ["response" ])
61+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
6362
6463 @parametrize
6564 def test_method_list_with_all_params (self , client : Runloop ) -> None :
6665 run = client .benchmarks .runs .list (
6766 limit = 0 ,
6867 starting_after = "starting_after" ,
6968 )
70- assert_matches_type (RunListResponse , run , path = ["response" ])
69+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
7170
7271 @parametrize
7372 def test_raw_response_list (self , client : Runloop ) -> None :
@@ -76,7 +75,7 @@ def test_raw_response_list(self, client: Runloop) -> None:
7675 assert response .is_closed is True
7776 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
7877 run = response .parse ()
79- assert_matches_type (RunListResponse , run , path = ["response" ])
78+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
8079
8180 @parametrize
8281 def test_streaming_response_list (self , client : Runloop ) -> None :
@@ -85,7 +84,7 @@ def test_streaming_response_list(self, client: Runloop) -> None:
8584 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
8685
8786 run = response .parse ()
88- assert_matches_type (RunListResponse , run , path = ["response" ])
87+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
8988
9089 assert cast (Any , response .is_closed ) is True
9190
@@ -172,15 +171,15 @@ async def test_path_params_retrieve(self, async_client: AsyncRunloop) -> None:
172171 @parametrize
173172 async def test_method_list (self , async_client : AsyncRunloop ) -> None :
174173 run = await async_client .benchmarks .runs .list ()
175- assert_matches_type (RunListResponse , run , path = ["response" ])
174+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
176175
177176 @parametrize
178177 async def test_method_list_with_all_params (self , async_client : AsyncRunloop ) -> None :
179178 run = await async_client .benchmarks .runs .list (
180179 limit = 0 ,
181180 starting_after = "starting_after" ,
182181 )
183- assert_matches_type (RunListResponse , run , path = ["response" ])
182+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
184183
185184 @parametrize
186185 async def test_raw_response_list (self , async_client : AsyncRunloop ) -> None :
@@ -189,7 +188,7 @@ async def test_raw_response_list(self, async_client: AsyncRunloop) -> None:
189188 assert response .is_closed is True
190189 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
191190 run = await response .parse ()
192- assert_matches_type (RunListResponse , run , path = ["response" ])
191+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
193192
194193 @parametrize
195194 async def test_streaming_response_list (self , async_client : AsyncRunloop ) -> None :
@@ -198,7 +197,7 @@ async def test_streaming_response_list(self, async_client: AsyncRunloop) -> None
198197 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
199198
200199 run = await response .parse ()
201- assert_matches_type (RunListResponse , run , path = ["response" ])
200+ assert_matches_type (BenchmarkRunListView , run , path = ["response" ])
202201
203202 assert cast (Any , response .is_closed ) is True
204203
0 commit comments