Skip to content

Commit 456c515

Browse files
committed
add failing test
1 parent 9a3797a commit 456c515

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/resources/test_collection.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,15 @@ async def test_get_collections_search(
303303
"/collections",
304304
)
305305
assert len(resp.json()["collections"]) == 2
306+
307+
308+
@pytest.mark.asyncio
309+
async def test_get_collections_search_limit_offset(
310+
app_client, load_test_collection, load_test2_collection
311+
):
312+
resp = await app_client.get(
313+
"/collections",
314+
params={"limit": 1},
315+
)
316+
assert len(resp.json()["collections"]) == 1
317+
assert resp.json()["collections"][0]["id"] == load_test_collection.id

0 commit comments

Comments
 (0)