You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 969322f
Browse filesBrowse the repository at this point in the historyBrowse files
test(integration): assert ListPage + typed item on every list() return
Align every integration test that calls a `list()` / `list_keys()` / `list_requests()` method
with the pattern introduced on iterable-list-methods-2 (commit 82ee01f):
xs_page = await maybe_await(client.xs().list(limit=10))
assert isinstance(xs_page, ListPage)
assert isinstance(xs_page.items, list)
assert isinstance(xs_page.items[0], XShort)
Covers: actors, actor-env-vars, actor-versions, builds (user + per-actor), datasets,
key-value-stores, key-value-store keys (incl. signature variant), request-queues,
request-queue requests (list + batch-add + batch-delete polls), runs (multi-status +
user runs + task runs), schedules, store, tasks, webhooks, webhook dispatches, log
(build listing).
Where a listing may legitimately be empty (user's own actors, user's own datasets/
KVSs/RQs/runs/builds, new task's webhooks, webhook dispatches), the element-type
assertion is guarded with `if xs_page.items:` rather than asserting `items[0]`.
All `ListOf*` imports from `_models_generated` in integration tests replaced with the
item-type import (e.g. `ActorShort`, `BuildShort`, `KeyValueStoreKey`, `Request`) plus
`ListPage` from `_iterable_list_page`.
No source changes. 258 integration tests collect cleanly; 521 unit tests pass.
https://claude.ai/code/session_011VSSFo89Z9LfyFqZGsJKfz
0 commit comments