Skip to content

Commit 929d2bd

Browse files
Add no-leading-slash /api path URL builder test
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent 33e5337 commit 929d2bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_url_building.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def test_client_build_url_normalizes_leading_slash():
1313
client._build_url("/api/session")
1414
== "https://api.hyperbrowser.ai/api/session"
1515
)
16+
assert client._build_url("api/session") == "https://api.hyperbrowser.ai/api/session"
1617
finally:
1718
client.close()
1819

0 commit comments

Comments
 (0)