Skip to content

Commit 6ce55a3

Browse files
committed
Improve some of the integration tests
1 parent 6ae9a3e commit 6ce55a3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

integration_tests/web/test_async_web_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def test_basic_chat_operations_async(self):
6868

6969
auth = await client.auth_test()
7070
self.assertIsNotNone(auth)
71-
subdomain = auth["team"]
71+
url = auth["url"]
7272

7373
channel = self.channel_id
7474
message = (
@@ -85,7 +85,7 @@ async def test_basic_chat_operations_async(self):
8585
self.assertIsNotNone(permalink)
8686
self.assertRegex(
8787
permalink["permalink"],
88-
f"https://{subdomain}.slack.com/archives/{channel}/.+",
88+
f"{url}archives/{channel}/.+",
8989
)
9090

9191
new_reaction = await client.reactions_add(

integration_tests/web/test_web_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_basic_chat_operations(self):
8888

8989
auth = client.auth_test()
9090
self.assertIsNotNone(auth)
91-
subdomain = auth["team"]
91+
url = auth["url"]
9292

9393
channel = self.channel_id
9494
message = (
@@ -105,7 +105,7 @@ def test_basic_chat_operations(self):
105105
self.assertIsNotNone(permalink)
106106
self.assertRegex(
107107
permalink["permalink"],
108-
f"https://{subdomain}.slack.com/archives/{channel}/.+",
108+
f"{url}archives/{channel}/.+",
109109
)
110110

111111
new_reaction = client.reactions_add(channel=channel, timestamp=ts, name="eyes")
@@ -140,7 +140,7 @@ async def test_basic_chat_operations_async(self):
140140

141141
auth = await client.auth_test()
142142
self.assertIsNotNone(auth)
143-
subdomain = auth["team"]
143+
url = auth["url"]
144144

145145
channel = self.channel_id
146146
message = (
@@ -157,7 +157,7 @@ async def test_basic_chat_operations_async(self):
157157
self.assertIsNotNone(permalink)
158158
self.assertRegex(
159159
permalink["permalink"],
160-
f"https://{subdomain}.slack.com/archives/{channel}/.+",
160+
f"{url}archives/{channel}/.+",
161161
)
162162

163163
new_reaction = await client.reactions_add(

0 commit comments

Comments
 (0)