File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def list_channel_types(self):
207207 return self .get ("channeltypes" )
208208
209209 def update_channel_type (self , channel_type , ** settings ):
210- return self .put ("channeltypes/{}" .format (channel_type ), ** settings )
210+ return self .put ("channeltypes/{}" .format (channel_type ), data = settings )
211211
212212 def delete_channel_type (self , channel_type ):
213213 """
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ def test_list_channel_types(self, client):
2727 response = client .list_channel_types ()
2828 assert "channel_types" in response
2929
30+ def test_update_channel_type (self , client ):
31+ response = client .update_channel_type ("team" , commands = ["ban" , "unban" ])
32+ assert "commands" in response
33+ assert response ["commands" ] == ["ban" , "unban" ]
34+
3035 def test_create_token (self , client ):
3136 token = client .create_token ("tommaso" )
3237 payload = jwt .decode (token , client .api_secret , algorithm = "HS256" )
You can’t perform that action at this time.
0 commit comments