style(ingest): ruff format country-seed tests
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -42,14 +42,10 @@ def test_fetch_by_country_dedupes_across_pages():
|
|||||||
def handler(request: httpx.Request) -> httpx.Response:
|
def handler(request: httpx.Request) -> httpx.Response:
|
||||||
page = int(request.url.params.get("page", "1"))
|
page = int(request.url.params.get("page", "1"))
|
||||||
if page == 1:
|
if page == 1:
|
||||||
return httpx.Response(
|
return httpx.Response(200, json={"products": [{"code": "6901"}, {"code": "6902"}]})
|
||||||
200, json={"products": [{"code": "6901"}, {"code": "6902"}]}
|
|
||||||
)
|
|
||||||
if page == 2:
|
if page == 2:
|
||||||
# OFF popularity ordering is unstable; a repeat appears on page 2
|
# OFF popularity ordering is unstable; a repeat appears on page 2
|
||||||
return httpx.Response(
|
return httpx.Response(200, json={"products": [{"code": "6902"}, {"code": "6903"}]})
|
||||||
200, json={"products": [{"code": "6902"}, {"code": "6903"}]}
|
|
||||||
)
|
|
||||||
return httpx.Response(200, json={"products": []})
|
return httpx.Response(200, json={"products": []})
|
||||||
|
|
||||||
adapter = _adapter(handler)
|
adapter = _adapter(handler)
|
||||||
|
|||||||
Reference in New Issue
Block a user