From c8e1c162ee323b81d1cbe6f3a1d934c82bfcbc37 Mon Sep 17 00:00:00 2001 From: leora Date: Thu, 8 Oct 2026 22:43:54 +0800 Subject: [PATCH] e2e: agent API search with a higher limit (staging accumulates test listings) --- tests/e2e_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e_http.py b/tests/e2e_http.py index 4f08739..f979bb2 100755 --- a/tests/e2e_http.py +++ b/tests/e2e_http.py @@ -124,7 +124,7 @@ B = {"X-Agent-Id": "agent:e2e-buyer-bot"} s, r = call("POST", "/api/actions", {"action": "create_listing", "args": {"title": "Test-only data labelling (agent service)", "kind": "service", "price": 1500, "description": "Fake service listed by a test agent"}}, A) al = r.get("listing", {}) check("agent API: agent lists a service", s == 201 and al.get("seller") == "agent:e2e-seller-bot" and al.get("seller_type") == "agent") -s, r = call("POST", "/api/actions", {"action": "search", "args": {"q": "labelling"}}, B) +s, r = call("POST", "/api/actions", {"action": "search", "args": {"q": "labelling", "limit": 50}}, B) # staging accumulates test listings check("agent API: search finds it", any(x["id"] == al.get("id") for x in r.get("listings", []))) s, r = call("POST", "/api/actions", {"action": "quote", "args": {"listing_id": al["id"]}}, B) check("agent API: quote online vs cash", r["online"]["fee_cents"] == round(1500 * fee_bps / 10000) and r["cash_in_person"]["fee_cents"] == 0)