@@ -14,7 +14,7 @@ def tearDown(self):
1414 pass
1515
1616 def test_operations (self ):
17- token = os .environ ["SLACK_SDK_TEST_TOOLING_TOKEN" ] # xoxe.xoxp-...
17+ token = os .environ ["SLACK_SDK_TEST_TOOLING_TOKEN" ] # xoxe.xoxp-...
1818 client = WebClient (token )
1919 client .apps_manifest_validate (manifest = STR_MANIFEST )
2020 client .apps_manifest_validate (manifest = DICT_MANIFEST )
@@ -115,86 +115,46 @@ def test_operations(self):
115115"""
116116
117117DICT_MANIFEST = {
118- "display_information" : {
119- "name" : "manifest-sandbox"
120- },
118+ "display_information" : {"name" : "manifest-sandbox" },
121119 "features" : {
122- "app_home" : {
123- "home_tab_enabled" : True ,
124- "messages_tab_enabled" : False ,
125- "messages_tab_read_only_enabled" : False
126- },
127- "bot_user" : {
128- "display_name" : "manifest-sandbox" ,
129- "always_online" : True
130- },
120+ "app_home" : {"home_tab_enabled" : True , "messages_tab_enabled" : False , "messages_tab_read_only_enabled" : False },
121+ "bot_user" : {"display_name" : "manifest-sandbox" , "always_online" : True },
131122 "shortcuts" : [
132- {
133- "name" : "message one" ,
134- "type" : "message" ,
135- "callback_id" : "m" ,
136- "description" : "message"
137- },
138- {
139- "name" : "global one" ,
140- "type" : "global" ,
141- "callback_id" : "g" ,
142- "description" : "global"
143- }
123+ {"name" : "message one" , "type" : "message" , "callback_id" : "m" , "description" : "message" },
124+ {"name" : "global one" , "type" : "global" , "callback_id" : "g" , "description" : "global" },
144125 ],
145126 "slash_commands" : [
146127 {
147128 "command" : "/hey" ,
148129 "url" : "https://www.example.com/" ,
149130 "description" : "What's up?" ,
150131 "usage_hint" : "What's up?" ,
151- "should_escape" : True
132+ "should_escape" : True ,
152133 }
153134 ],
154- "unfurl_domains" : [
155- "example.com"
156- ]
135+ "unfurl_domains" : ["example.com" ],
157136 },
158137 "oauth_config" : {
159- "redirect_urls" : [
160- "https://www.example.com/foo"
161- ],
138+ "redirect_urls" : ["https://www.example.com/foo" ],
162139 "scopes" : {
163- "user" : [
164- "search:read" ,
165- "channels:read" ,
166- "groups:read" ,
167- "mpim:read"
168- ],
169- "bot" : [
170- "commands" ,
171- "incoming-webhook" ,
172- "app_mentions:read" ,
173- "links:read"
174- ]
175- }
140+ "user" : ["search:read" , "channels:read" , "groups:read" , "mpim:read" ],
141+ "bot" : ["commands" , "incoming-webhook" , "app_mentions:read" , "links:read" ],
142+ },
176143 },
177144 "settings" : {
178- "allowed_ip_address_ranges" : [
179- "123.123.123.123/32"
180- ],
145+ "allowed_ip_address_ranges" : ["123.123.123.123/32" ],
181146 "event_subscriptions" : {
182147 "request_url" : "https://www.example.com/slack/events" ,
183- "user_events" : [
184- "member_joined_channel"
185- ],
186- "bot_events" : [
187- "app_mention" ,
188- "link_shared"
189- ]
148+ "user_events" : ["member_joined_channel" ],
149+ "bot_events" : ["app_mention" , "link_shared" ],
190150 },
191151 "interactivity" : {
192152 "is_enabled" : True ,
193153 "request_url" : "https://www.example.com/" ,
194- "message_menu_options_url" : "https://www.example.com/"
154+ "message_menu_options_url" : "https://www.example.com/" ,
195155 },
196156 "org_deploy_enabled" : True ,
197157 "socket_mode_enabled" : False ,
198- "token_rotation_enabled" : True
199- }
158+ "token_rotation_enabled" : True ,
159+ },
200160}
0 commit comments