22from slack_sdk .web .async_client import AsyncWebClient
33
44from slack_bolt .context .say_stream .async_say_stream import AsyncSayStream
5- from slack_bolt .warning import ExperimentalWarning
65from tests .mock_web_api_server import (
76 cleanup_mock_web_api_server ,
87 setup_mock_web_api_server ,
@@ -29,16 +28,14 @@ def setup_teardown(self):
2928 @pytest .mark .asyncio
3029 async def test_missing_channel_raises (self ):
3130 say_stream = AsyncSayStream (client = self .web_client , channel = None , thread_ts = "111.222" )
32- with pytest .warns (ExperimentalWarning ):
33- with pytest .raises (ValueError , match = "channel" ):
34- await say_stream ()
31+ with pytest .raises (ValueError , match = "channel" ):
32+ await say_stream ()
3533
3634 @pytest .mark .asyncio
3735 async def test_missing_thread_ts_raises (self ):
3836 say_stream = AsyncSayStream (client = self .web_client , channel = "C111" , thread_ts = None )
39- with pytest .warns (ExperimentalWarning ):
40- with pytest .raises (ValueError , match = "thread_ts" ):
41- await say_stream ()
37+ with pytest .raises (ValueError , match = "thread_ts" ):
38+ await say_stream ()
4239
4340 @pytest .mark .asyncio
4441 async def test_default_params (self ):
@@ -105,13 +102,3 @@ async def test_buffer_size_overrides(self):
105102 "recipient_user_id" : "U222" ,
106103 "task_display_mode" : None ,
107104 }
108-
109- @pytest .mark .asyncio
110- async def test_experimental_warning (self ):
111- say_stream = AsyncSayStream (
112- client = self .web_client ,
113- channel = "C111" ,
114- thread_ts = "111.222" ,
115- )
116- with pytest .warns (ExperimentalWarning , match = "say_stream is experimental" ):
117- await say_stream ()
0 commit comments