@@ -747,14 +747,24 @@ def test_path_params_context(self, client: Steel) -> None:
747747 @parametrize
748748 def test_method_events (self , client : Steel ) -> None :
749749 session = client .sessions .events (
750- "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
750+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
751+ )
752+ assert_matches_type (SessionEventsResponse , session , path = ["response" ])
753+
754+ @parametrize
755+ def test_method_events_with_all_params (self , client : Steel ) -> None :
756+ session = client .sessions .events (
757+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
758+ compressed = True ,
759+ limit = - 9007199254740991 ,
760+ pointer = "pointer" ,
751761 )
752762 assert_matches_type (SessionEventsResponse , session , path = ["response" ])
753763
754764 @parametrize
755765 def test_raw_response_events (self , client : Steel ) -> None :
756766 response = client .sessions .with_raw_response .events (
757- "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
767+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
758768 )
759769
760770 assert response .is_closed is True
@@ -765,7 +775,7 @@ def test_raw_response_events(self, client: Steel) -> None:
765775 @parametrize
766776 def test_streaming_response_events (self , client : Steel ) -> None :
767777 with client .sessions .with_streaming_response .events (
768- "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
778+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
769779 ) as response :
770780 assert not response .is_closed
771781 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -779,7 +789,7 @@ def test_streaming_response_events(self, client: Steel) -> None:
779789 def test_path_params_events (self , client : Steel ) -> None :
780790 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
781791 client .sessions .with_raw_response .events (
782- "" ,
792+ id = "" ,
783793 )
784794
785795 @parametrize
@@ -1608,14 +1618,24 @@ async def test_path_params_context(self, async_client: AsyncSteel) -> None:
16081618 @parametrize
16091619 async def test_method_events (self , async_client : AsyncSteel ) -> None :
16101620 session = await async_client .sessions .events (
1611- "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1621+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1622+ )
1623+ assert_matches_type (SessionEventsResponse , session , path = ["response" ])
1624+
1625+ @parametrize
1626+ async def test_method_events_with_all_params (self , async_client : AsyncSteel ) -> None :
1627+ session = await async_client .sessions .events (
1628+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1629+ compressed = True ,
1630+ limit = - 9007199254740991 ,
1631+ pointer = "pointer" ,
16121632 )
16131633 assert_matches_type (SessionEventsResponse , session , path = ["response" ])
16141634
16151635 @parametrize
16161636 async def test_raw_response_events (self , async_client : AsyncSteel ) -> None :
16171637 response = await async_client .sessions .with_raw_response .events (
1618- "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1638+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
16191639 )
16201640
16211641 assert response .is_closed is True
@@ -1626,7 +1646,7 @@ async def test_raw_response_events(self, async_client: AsyncSteel) -> None:
16261646 @parametrize
16271647 async def test_streaming_response_events (self , async_client : AsyncSteel ) -> None :
16281648 async with async_client .sessions .with_streaming_response .events (
1629- "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
1649+ id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e" ,
16301650 ) as response :
16311651 assert not response .is_closed
16321652 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -1640,7 +1660,7 @@ async def test_streaming_response_events(self, async_client: AsyncSteel) -> None
16401660 async def test_path_params_events (self , async_client : AsyncSteel ) -> None :
16411661 with pytest .raises (ValueError , match = r"Expected a non-empty value for `id` but received ''" ):
16421662 await async_client .sessions .with_raw_response .events (
1643- "" ,
1663+ id = "" ,
16441664 )
16451665
16461666 @parametrize
0 commit comments