Skip to content

Commit a624f35

Browse files
committed
fix test
1 parent c0ed18e commit a624f35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/client/test_list_methods_cursor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ async def test_list_methods_params_parameter(
7373
_ = await method()
7474
requests = spies.get_client_requests(method=request_method)
7575
assert len(requests) == 1
76-
assert requests[0].params is None
76+
assert requests[0].params is None or "cursor" not in requests[0].params
7777

7878
spies.clear()
7979

8080
# Test with params containing cursor
81-
_ = await method(params=types.PaginatedRequestParams(cursor="from_params"))
81+
_ = await method(cursor="from_params")
8282
requests = spies.get_client_requests(method=request_method)
8383
assert len(requests) == 1
8484
assert requests[0].params is not None
@@ -87,7 +87,7 @@ async def test_list_methods_params_parameter(
8787
spies.clear()
8888

8989
# Test with empty params
90-
_ = await method(params=types.PaginatedRequestParams())
90+
_ = await method()
9191
requests = spies.get_client_requests(method=request_method)
9292
assert len(requests) == 1
9393
# Empty params means no cursor

0 commit comments

Comments
 (0)