Skip to content

Commit 42681fa

Browse files
committed
tests if adds or preserves the trailing slash
1 parent 683d507 commit 42681fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/slack_sdk/web/test_web_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,11 @@ def test_user_auth_blocks(self):
229229
user_auth_blocks=[DividerBlock(), DividerBlock()],
230230
)
231231
self.assertIsNone(new_message.get("error"))
232+
233+
def test_base_url_appends_trailing_slash_issue_15141(self):
234+
client = self.client
235+
self.assertEqual(client.base_url, "http://localhost:8888/")
236+
237+
def test_base_url_preserves_trailing_slash_issue_15141(self):
238+
client = WebClient(base_url="http://localhost:8888/")
239+
self.assertEqual(client.base_url, "http://localhost:8888/")

0 commit comments

Comments
 (0)