@@ -19,25 +19,20 @@ class TestStopsForLocation:
1919
2020 @parametrize
2121 def test_method_retrieve (self , client : OnebusawaySDK ) -> None :
22- stops_for_location = client .stops_for_location .retrieve (
23- key = "key" ,
24- )
22+ stops_for_location = client .stops_for_location .retrieve ()
2523 assert_matches_type (StopsForLocationRetrieveResponse , stops_for_location , path = ["response" ])
2624
2725 @parametrize
2826 def test_method_retrieve_with_all_params (self , client : OnebusawaySDK ) -> None :
2927 stops_for_location = client .stops_for_location .retrieve (
30- key = "key" ,
3128 lat = 0 ,
3229 lon = 0 ,
3330 )
3431 assert_matches_type (StopsForLocationRetrieveResponse , stops_for_location , path = ["response" ])
3532
3633 @parametrize
3734 def test_raw_response_retrieve (self , client : OnebusawaySDK ) -> None :
38- response = client .stops_for_location .with_raw_response .retrieve (
39- key = "key" ,
40- )
35+ response = client .stops_for_location .with_raw_response .retrieve ()
4136
4237 assert response .is_closed is True
4338 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -46,9 +41,7 @@ def test_raw_response_retrieve(self, client: OnebusawaySDK) -> None:
4641
4742 @parametrize
4843 def test_streaming_response_retrieve (self , client : OnebusawaySDK ) -> None :
49- with client .stops_for_location .with_streaming_response .retrieve (
50- key = "key" ,
51- ) as response :
44+ with client .stops_for_location .with_streaming_response .retrieve () as response :
5245 assert not response .is_closed
5346 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
5447
@@ -63,25 +56,20 @@ class TestAsyncStopsForLocation:
6356
6457 @parametrize
6558 async def test_method_retrieve (self , async_client : AsyncOnebusawaySDK ) -> None :
66- stops_for_location = await async_client .stops_for_location .retrieve (
67- key = "key" ,
68- )
59+ stops_for_location = await async_client .stops_for_location .retrieve ()
6960 assert_matches_type (StopsForLocationRetrieveResponse , stops_for_location , path = ["response" ])
7061
7162 @parametrize
7263 async def test_method_retrieve_with_all_params (self , async_client : AsyncOnebusawaySDK ) -> None :
7364 stops_for_location = await async_client .stops_for_location .retrieve (
74- key = "key" ,
7565 lat = 0 ,
7666 lon = 0 ,
7767 )
7868 assert_matches_type (StopsForLocationRetrieveResponse , stops_for_location , path = ["response" ])
7969
8070 @parametrize
8171 async def test_raw_response_retrieve (self , async_client : AsyncOnebusawaySDK ) -> None :
82- response = await async_client .stops_for_location .with_raw_response .retrieve (
83- key = "key" ,
84- )
72+ response = await async_client .stops_for_location .with_raw_response .retrieve ()
8573
8674 assert response .is_closed is True
8775 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -90,9 +78,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnebusawaySDK) ->
9078
9179 @parametrize
9280 async def test_streaming_response_retrieve (self , async_client : AsyncOnebusawaySDK ) -> None :
93- async with async_client .stops_for_location .with_streaming_response .retrieve (
94- key = "key" ,
95- ) as response :
81+ async with async_client .stops_for_location .with_streaming_response .retrieve () as response :
9682 assert not response .is_closed
9783 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
9884
0 commit comments