Skip to content

Commit 57eb593

Browse files
committed
Use a neutral host in the realm_from_url fixture
1 parent 61a78af commit 57eb593

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_checkout.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ def test_realm_from_url_derives_bare_host():
992992

993993
# Full endpoint URL -> bare host (matches the Node SDK's new URL(APP_URL).host),
994994
# so the WWW-Authenticate realm is the protection space, not the full path.
995-
assert _realm_from_url("https://agents.agentscore.com/purchase") == "agents.agentscore.com"
995+
assert _realm_from_url("https://merchant.example.com/purchase") == "merchant.example.com"
996996
assert _realm_from_url("https://agents.example.com:8443/x/y") == "agents.example.com:8443"
997997
# No parseable host: pass through unchanged.
998998
assert _realm_from_url("agents.example.com") == "agents.example.com"

0 commit comments

Comments
 (0)