@@ -62,7 +62,7 @@ def setUp(self):
62
62
63
63
def test_handle_on_message (self ):
64
64
with patch ('desktop.lib.botserver.views._send_message' ) as _send_message :
65
- with patch ('desktop.lib.botserver.views.detect_select_statement ' ) as detect_select_statement :
65
+ with patch ('desktop.lib.botserver.views.handle_select_statement ' ) as handle_select_statement :
66
66
67
67
channel_id = "channel"
68
68
bot_id = "bot_id"
@@ -97,9 +97,9 @@ def test_handle_on_message(self):
97
97
]
98
98
99
99
handle_on_message (self .host_domain , self .is_http_secure , channel_id , None , message_element , user_id )
100
- detect_select_statement .assert_called_with (self .host_domain , self .is_http_secure , channel_id , user_id , 'select 1' )
100
+ handle_select_statement .assert_called_with (self .host_domain , self .is_http_secure , channel_id , user_id , 'select 1' )
101
101
102
- def test_detect_select_statement (self ):
102
+ def test_handle_select_statement (self ):
103
103
with patch ('desktop.lib.botserver.views.check_slack_user_permission' ) as check_slack_user :
104
104
with patch ('desktop.lib.botserver.views.get_user' ) as get_user :
105
105
with patch ('desktop.lib.botserver.views.get_cluster_config' ) as get_cluster_config :
@@ -119,7 +119,7 @@ def test_detect_select_statement(self):
119
119
'link' : 'gist_link'
120
120
}
121
121
122
- detect_select_statement (self .host_domain , self .is_http_secure , channel_id , user_id , statement )
122
+ handle_select_statement (self .host_domain , self .is_http_secure , channel_id , user_id , statement )
123
123
_send_message .assert_called_with (
124
124
channel_id ,
125
125
('Hi <@user_id>\n '
0 commit comments