Skip to content

Commit fc59726

Browse files
authored
Use a neutral merchant name in the seamless-helpers fixtures (#160)
## Summary The seamless-helpers tests used "AgentScore Store" as their merchant-name fixture. That was a real merchant, and it no longer exists. The fixture is now the neutral "Example Merchant". The tests check the same behavior as before. ## Type of change - [ ] Bug fix (no breaking change) - [ ] New feature (no breaking change) - [ ] Breaking change (existing callers must update) - [x] Docs, tests, or internal maintenance only ## Public API none ## Test plan The seamless-helpers test file passes locally after the rename. The full suite runs in CI. ## Checklist - [x] Tests cover the new behavior, and the suite passes locally - [x] Lint, format, and type checks pass - [x] Docs and README examples updated if the public surface changed - [x] No secrets, credentials, or personal data in the diff or the tests
1 parent 2f7d654 commit fc59726

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎tests/test_seamless_helpers.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -409,13 +409,13 @@ def test_purchase_mode_note_unknown_returns_empty_string() -> None:
409409

410410
def test_build_agentscore_onboarding_steps_substitutes_merchant_url_and_rails() -> None:
411411
steps = build_agentscore_onboarding_steps(
412-
merchant_name="AgentScore Store",
412+
merchant_name="Example Merchant",
413413
app_url="https://store.example",
414414
accepted_rails=["tempo", "x402-base", "solana-mpp"],
415415
requires_kyc=True,
416416
)
417417
text = "\n".join(steps)
418-
assert "AgentScore Store" in text
418+
assert "Example Merchant" in text
419419
assert "Tempo USDC" in text
420420
assert "x402 USDC on Base" in text
421421
assert "Solana SPL USDC" in text
@@ -485,18 +485,18 @@ def test_build_success_next_steps_includes_eta_when_provided() -> None:
485485

486486
def test_build_redemption_skill_md_substitutes_merchant_and_url() -> None:
487487
md = build_redemption_skill_md(
488-
merchant_name="AgentScore Store",
488+
merchant_name="Example Merchant",
489489
app_url="https://store.example",
490490
)
491-
assert "AgentScore Store" in md
491+
assert "Example Merchant" in md
492492
assert "https://store.example/catalog" in md
493493
assert "https://store.example/purchase" in md
494494
assert "Don't have a code?" not in md
495495

496496

497497
def test_build_redemption_skill_md_with_peer_pointer_emits_section() -> None:
498498
md = build_redemption_skill_md(
499-
merchant_name="AgentScore Store",
499+
merchant_name="Example Merchant",
500500
app_url="https://store.example",
501501
peer_merchant_pointer="https://martin.example",
502502
sku_intro="a custom SKU intro.",
@@ -1661,7 +1661,7 @@ async def _pricing(ctx: Any) -> PricingResult:
16611661
with _env_key(private_jwk):
16621662
resp = build_signed_ucp_response(
16631663
checkout=checkout,
1664-
name="AgentScore Store",
1664+
name="Example Merchant",
16651665
well_known_ucp_url="https://x/.well-known/ucp",
16661666
services={"dev.ucp.shopping": []},
16671667
signing_kid="ucp-test",
@@ -1671,7 +1671,7 @@ async def _pricing(ctx: Any) -> PricingResult:
16711671
assert resp.headers["X-Request-ID"] == "req-ucp"
16721672
assert "max-age=60" in resp.headers["Cache-Control"]
16731673
body = json.loads(resp.content)
1674-
assert body["ucp"]["name"] == "AgentScore Store"
1674+
assert body["ucp"]["name"] == "Example Merchant"
16751675
assert "signature" in body
16761676
assert body["ucp"]["payment_handlers"]
16771677

@@ -2089,13 +2089,13 @@ def test_build_merchant_index_json_core_fields() -> None:
20892089
from agentscore_commerce.discovery import build_merchant_index_json
20902090

20912091
body = build_merchant_index_json(
2092-
name="AgentScore Store",
2092+
name="Example Merchant",
20932093
description="Wine and merch for agents.",
20942094
docs={"llms": "https://x/llms.txt", "openapi": "https://x/openapi.json"},
20952095
endpoints={"GET /catalog": "List products."},
20962096
supported_rails=["tempo", "x402-base"],
20972097
)
2098-
assert body["name"] == "AgentScore Store"
2098+
assert body["name"] == "Example Merchant"
20992099
assert body["audience"] == "agents"
21002100
assert body["supported_rails"] == ["tempo", "x402-base"]
21012101
assert body["docs"]["llms"] == "https://x/llms.txt"

0 commit comments

Comments
 (0)