@@ -48,12 +48,22 @@ def test_installation_store_legacy(self):
4848 assert result .bot_id == "BZYBOTHED"
4949 assert result .bot_user_id == "W23456789"
5050 assert result .user_token is None
51+ assert result .user_id is None
52+ assert result .user == "bot"
53+ assert result .team_id == "T0G9PQBBK"
54+ assert result .team == "Subarachnoid Workspace"
55+ assert result .url == "https://subarachnoid.slack.com/"
5156 assert_auth_test_count (self , 1 )
5257
5358 result = authorize (context = context , enterprise_id = "E111" , team_id = "T0G9PQBBK" , user_id = "W11111" )
5459 assert result .bot_id == "BZYBOTHED"
5560 assert result .bot_user_id == "W23456789"
5661 assert result .user_token is None
62+ assert result .user_id is None
63+ assert result .user == "bot"
64+ assert result .team_id == "T0G9PQBBK"
65+ assert result .team == "Subarachnoid Workspace"
66+ assert result .url == "https://subarachnoid.slack.com/"
5767 assert_auth_test_count (self , 2 )
5868
5969 def test_installation_store_cached_legacy (self ):
@@ -71,12 +81,22 @@ def test_installation_store_cached_legacy(self):
7181 assert result .bot_id == "BZYBOTHED"
7282 assert result .bot_user_id == "W23456789"
7383 assert result .user_token is None
84+ assert result .user_id is None
85+ assert result .user == "bot"
86+ assert result .team_id == "T0G9PQBBK"
87+ assert result .team == "Subarachnoid Workspace"
88+ assert result .url == "https://subarachnoid.slack.com/"
7489 assert_auth_test_count (self , 1 )
7590
7691 result = authorize (context = context , enterprise_id = "E111" , team_id = "T0G9PQBBK" , user_id = "W11111" )
7792 assert result .bot_id == "BZYBOTHED"
7893 assert result .bot_user_id == "W23456789"
7994 assert result .user_token is None
95+ assert result .user_id is None
96+ assert result .user == "bot"
97+ assert result .team_id == "T0G9PQBBK"
98+ assert result .team == "Subarachnoid Workspace"
99+ assert result .url == "https://subarachnoid.slack.com/"
80100 assert_auth_test_count (self , 1 ) # cached
81101
82102 def test_installation_store_bot_only (self ):
@@ -95,12 +115,22 @@ def test_installation_store_bot_only(self):
95115 assert result .bot_id == "BZYBOTHED"
96116 assert result .bot_user_id == "W23456789"
97117 assert result .user_token is None
118+ assert result .user_id is None
119+ assert result .user == "bot"
120+ assert result .team_id == "T0G9PQBBK"
121+ assert result .team == "Subarachnoid Workspace"
122+ assert result .url == "https://subarachnoid.slack.com/"
98123 assert_auth_test_count (self , 1 )
99124
100125 result = authorize (context = context , enterprise_id = "E111" , team_id = "T0G9PQBBK" , user_id = "W11111" )
101126 assert result .bot_id == "BZYBOTHED"
102127 assert result .bot_user_id == "W23456789"
103128 assert result .user_token is None
129+ assert result .user_id is None
130+ assert result .user == "bot"
131+ assert result .team_id == "T0G9PQBBK"
132+ assert result .team == "Subarachnoid Workspace"
133+ assert result .url == "https://subarachnoid.slack.com/"
104134 assert_auth_test_count (self , 2 )
105135
106136 def test_installation_store_cached_bot_only (self ):
@@ -120,12 +150,22 @@ def test_installation_store_cached_bot_only(self):
120150 assert result .bot_id == "BZYBOTHED"
121151 assert result .bot_user_id == "W23456789"
122152 assert result .user_token is None
153+ assert result .user_id is None
154+ assert result .user == "bot"
155+ assert result .team_id == "T0G9PQBBK"
156+ assert result .team == "Subarachnoid Workspace"
157+ assert result .url == "https://subarachnoid.slack.com/"
123158 assert_auth_test_count (self , 1 )
124159
125160 result = authorize (context = context , enterprise_id = "E111" , team_id = "T0G9PQBBK" , user_id = "W11111" )
126161 assert result .bot_id == "BZYBOTHED"
127162 assert result .bot_user_id == "W23456789"
128163 assert result .user_token is None
164+ assert result .user_id is None
165+ assert result .user == "bot"
166+ assert result .team_id == "T0G9PQBBK"
167+ assert result .team == "Subarachnoid Workspace"
168+ assert result .url == "https://subarachnoid.slack.com/"
129169 assert_auth_test_count (self , 1 ) # cached
130170
131171 def test_installation_store (self ):
@@ -138,12 +178,22 @@ def test_installation_store(self):
138178 assert result .bot_id == "BZYBOTHED"
139179 assert result .bot_user_id == "W23456789"
140180 assert result .user_token == "xoxp-valid"
181+ assert result .user_id == "W99999"
182+ assert result .user == "some-user"
183+ assert result .team_id == "T0G9PQBBK"
184+ assert result .team == "Subarachnoid Workspace"
185+ assert result .url == "https://subarachnoid.slack.com/"
141186 assert_auth_test_count (self , 1 )
142187
143188 result = authorize (context = context , enterprise_id = "E111" , team_id = "T0G9PQBBK" , user_id = "W11111" )
144189 assert result .bot_id == "BZYBOTHED"
145190 assert result .bot_user_id == "W23456789"
146191 assert result .user_token == "xoxp-valid"
192+ assert result .user_id == "W99999"
193+ assert result .user == "some-user"
194+ assert result .team_id == "T0G9PQBBK"
195+ assert result .team == "Subarachnoid Workspace"
196+ assert result .url == "https://subarachnoid.slack.com/"
147197 assert_auth_test_count (self , 2 )
148198
149199 def test_installation_store_cached (self ):
@@ -160,12 +210,22 @@ def test_installation_store_cached(self):
160210 assert result .bot_id == "BZYBOTHED"
161211 assert result .bot_user_id == "W23456789"
162212 assert result .user_token == "xoxp-valid"
213+ assert result .user_id == "W99999"
214+ assert result .user == "some-user"
215+ assert result .team_id == "T0G9PQBBK"
216+ assert result .team == "Subarachnoid Workspace"
217+ assert result .url == "https://subarachnoid.slack.com/"
163218 assert_auth_test_count (self , 1 )
164219
165220 result = authorize (context = context , enterprise_id = "E111" , team_id = "T0G9PQBBK" , user_id = "W11111" )
166221 assert result .bot_id == "BZYBOTHED"
167222 assert result .bot_user_id == "W23456789"
168223 assert result .user_token == "xoxp-valid"
224+ assert result .user_id == "W99999"
225+ assert result .user == "some-user"
226+ assert result .team_id == "T0G9PQBBK"
227+ assert result .team == "Subarachnoid Workspace"
228+ assert result .url == "https://subarachnoid.slack.com/"
169229 assert_auth_test_count (self , 1 ) # cached
170230
171231 def test_fetch_different_user_token (self ):
@@ -178,6 +238,11 @@ def test_fetch_different_user_token(self):
178238 assert result .bot_user_id == "W23456789"
179239 assert result .bot_token == "xoxb-valid"
180240 assert result .user_token == "xoxp-valid"
241+ assert result .user_id == "W99999"
242+ assert result .user == "some-user"
243+ assert result .team_id == "T0G9PQBBK"
244+ assert result .team == "Subarachnoid Workspace"
245+ assert result .url == "https://subarachnoid.slack.com/"
181246 assert_auth_test_count (self , 1 )
182247
183248 def test_fetch_different_user_token_with_rotation (self ):
@@ -209,6 +274,11 @@ def test_fetch_different_user_token_with_rotation(self):
209274 assert result .bot_user_id == "W23456789"
210275 assert result .bot_token == "xoxb-valid-refreshed"
211276 assert result .user_token == "xoxp-valid-refreshed"
277+ assert result .user_id == "W99999"
278+ assert result .user == "some-user"
279+ assert result .team_id == "T0G9PQBBK"
280+ assert result .team == "Subarachnoid Workspace"
281+ assert result .url == "https://subarachnoid.slack.com/"
212282 assert_auth_test_count (self , 1 )
213283
214284 def test_remove_latest_user_token_if_it_is_not_relevant (self ):
@@ -221,6 +291,11 @@ def test_remove_latest_user_token_if_it_is_not_relevant(self):
221291 assert result .bot_user_id == "W23456789"
222292 assert result .bot_token == "xoxb-valid"
223293 assert result .user_token is None
294+ assert result .user_id is None
295+ assert result .user == "bot"
296+ assert result .team_id == "T0G9PQBBK"
297+ assert result .team == "Subarachnoid Workspace"
298+ assert result .url == "https://subarachnoid.slack.com/"
224299 assert_auth_test_count (self , 1 )
225300
226301 def test_rotate_only_bot_token (self ):
@@ -252,6 +327,11 @@ def test_rotate_only_bot_token(self):
252327 assert result .bot_user_id == "W23456789"
253328 assert result .bot_token == "xoxb-valid-refreshed"
254329 assert result .user_token is None
330+ assert result .user_id is None
331+ assert result .user == "bot"
332+ assert result .team_id == "T0G9PQBBK"
333+ assert result .team == "Subarachnoid Workspace"
334+ assert result .url == "https://subarachnoid.slack.com/"
255335 assert_auth_test_count (self , 1 )
256336
257337
0 commit comments